Skip to content

Commit

Permalink
Merge pull request #15810 from abpframework/UnitOfWork
Browse files Browse the repository at this point in the history
Remove the key from the exception.
  • Loading branch information
realLiangshiwei authored Feb 27, 2023
2 parents 85a702c + 7f0e1e3 commit cb28acd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions framework/src/Volo.Abp.Uow/Volo/Abp/Uow/UnitOfWork.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public virtual void AddDatabaseApi(string key, IDatabaseApi api)

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);
Expand Down Expand Up @@ -221,7 +221,7 @@ public virtual void AddTransactionApi(string key, ITransactionApi api)

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);
Expand Down

0 comments on commit cb28acd

Please sign in to comment.