Skip to content

Commit

Permalink
Report exceptions with class=exit too in execute_successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
arcusfelis committed Dec 14, 2020
1 parent 031e841 commit f73c84d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rdbms/mongoose_rdbms.erl
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ execute_successfully(Host, Name, Parameters) ->
statement_params => Parameters, reason => Other},
?LOG_ERROR(Log),
error(Log)
catch error:Reason:Stacktrace ->
catch Class:Reason:Stacktrace ->
Log = #{what => sql_execute_failed, host => Host, statement_name => Name,
statement_query => query_name_to_string(Name),
statement_params => Parameters,
reason => Reason, stacktrace => Stacktrace},
class => Class, reason => Reason, stacktrace => Stacktrace},
?LOG_ERROR(Log),
erlang:raise(error, Reason, Stacktrace)
end.
Expand Down

0 comments on commit f73c84d

Please sign in to comment.