fix(frame): simlify error excption context

We should not raise error with the exact context after logging it
because it will end up duplicated in the log
This commit is contained in:
Zaiming Shi 2021-09-28 18:15:32 +02:00
parent c1ff30896a
commit 225ebdaa87
2 changed files with 2 additions and 2 deletions

View File

@ -726,7 +726,7 @@ serialize_and_inc_stats_fun(#state{serialize = Serialize}) ->
?SLOG(error, #{ input_packet => Packet
, exception => Reason
, stacktrace => Stacktrace}),
erlang:raise(error, Reason, Stacktrace)
erlang:error(frame_serialize_error)
end
end.

View File

@ -646,7 +646,7 @@ serialize_and_inc_stats_fun(#state{serialize = Serialize}) ->
?SLOG(error, #{ input_packet => Packet
, exception => Reason
, stacktrace => Stacktrace}),
erlang:raise(error, Reason, Stacktrace)
erlang:error(frame_serialize_error)
end
end.