Browse Source

Update UnitOfWorkMongoDbContextProvider.cs

pull/10658/head
maliming 5 years ago
parent
commit
aa01142d87
No known key found for this signature in database GPG Key ID: 96224957E51C89E
  1. 4
      framework/src/Volo.Abp.MongoDB/Volo/Abp/Uow/MongoDB/UnitOfWorkMongoDbContextProvider.cs

4
framework/src/Volo.Abp.MongoDB/Volo/Abp/Uow/MongoDB/UnitOfWorkMongoDbContextProvider.cs

@ -188,7 +188,7 @@ namespace Volo.Abp.Uow.MongoDB
{
session.StartTransaction();
}
catch (Exception e)
catch (NotSupportedException e)
{
Logger.LogError("The current MongoDB database does not support transactions, All operations will be performed in non-transactions, This may cause errors.");
Logger.LogException(e);
@ -239,7 +239,7 @@ namespace Volo.Abp.Uow.MongoDB
{
session.StartTransaction();
}
catch (Exception e)
catch (NotSupportedException e)
{
Logger.LogError("The current MongoDB database does not support transactions, All operations will be performed in non-transactions, This may cause errors.");
Logger.LogException(e);

Loading…
Cancel
Save