Skip to content

Commit 2cb9334

Browse files
authored
Update README.md
1 parent 7306698 commit 2cb9334

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ try
107107
await dbContext.BulkInsertAsync(list2, null, dbTransaction);
108108
await dbContext.BulkInsertAsync(list3, null, dbTransaction);
109109

110-
throw new DbUpdateException("Internal Server Error");
110+
await transaction.CommitAsync();
111111
}
112-
catch (Exception ex)
112+
catch (Exception)
113113
{
114114
if (transaction is not null) await transaction.RollbackAsync();
115115
throw;

0 commit comments

Comments
 (0)