Skip to content

Commit

Permalink
Fixed issue which caused exceptions not to be thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
TwentyFourMinutes committed Apr 11, 2021
1 parent 6e09c50 commit 907a8eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions src/Venflow/Venflow.Shared/Venflow.Shared.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/Venflow/Venflow/Commands/VenflowBaseCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ protected bool Log(Venflow.Enums.CommandType commandType, Exception? exception =
{
Database.ExecuteLoggers(_loggers, UnderlyingCommand, commandType, exception);
}

if (VenflowConfiguration.ThrowLoggedExceptions &&
exception is not null)
throw exception;
}

if (VenflowConfiguration.ThrowLoggedExceptions &&
exception is not null)
throw exception;

return true;
}

Expand Down

0 comments on commit 907a8eb

Please sign in to comment.