Skip to content

Commit

Permalink
Avoid duplicate exception allocations on failure path
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Apr 14, 2020
1 parent 16d8875 commit c90aa78
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private SqlConnection(sqlite3 handle, IPersistentStorageFaultInjector faultInjec
{
var ex = new InvalidOperationException("SqlConnection was not properly closed");
_faultInjector?.OnFatalError(ex);
FatalError.Report(new InvalidOperationException("SqlConnection was not properly closed"));
FatalError.Report(ex);
}
}

Expand Down

0 comments on commit c90aa78

Please sign in to comment.