fix(emqx_bridge_v2): dialyzer found bad format parameter error

This commit is contained in:
Kjell Winblad 2023-11-06 09:43:15 +01:00 committed by Ivan Dyachkov
parent 3c778121a5
commit a6aa81b548
1 changed files with 8 additions and 6 deletions

View File

@ -173,12 +173,14 @@ on_load() ->
catch
ErrorType:Reason:Stacktrace ->
%% Logger may not be started so print to stdout
io:format("~p~n", #{
'error_type' => ErrorType,
'reason' => Reason,
'stacktrace' => Stacktrace,
'msg' => "Failed to register bridge V2 type"
}),
io:format("~p~n", [
#{
'error_type' => ErrorType,
'reason' => Reason,
'stacktrace' => Stacktrace,
'msg' => "Failed to register bridge V2 type"
}
]),
erlang:raise(ErrorType, Reason, Stacktrace)
after
global:del_lock(