Remove the key from the exception.

Resolve #15808
pull/15810/head
maliming 3 years ago
parent 85a702c1b3
commit 7f0e1e3ee5
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4

@ -193,7 +193,7 @@ public class UnitOfWork : IUnitOfWork, ITransientDependency
if (_databaseApis.ContainsKey(key))
{
throw new AbpException("There is already a database API in this unit of work with given key: " + key);
throw new AbpException("There is already a database API in this unit of work with given key.");
}
_databaseApis.Add(key, api);
@ -221,7 +221,7 @@ public class UnitOfWork : IUnitOfWork, ITransientDependency
if (_transactionApis.ContainsKey(key))
{
throw new AbpException("There is already a transaction API in this unit of work with given key: " + key);
throw new AbpException("There is already a transaction API in this unit of work with given key.");
}
_transactionApis.Add(key, api);

Loading…
Cancel
Save