fix(emqx_bridge_v2): dialyzer found bad format parameter error
This commit is contained in:
parent
3c778121a5
commit
a6aa81b548
|
@ -173,12 +173,14 @@ on_load() ->
|
||||||
catch
|
catch
|
||||||
ErrorType:Reason:Stacktrace ->
|
ErrorType:Reason:Stacktrace ->
|
||||||
%% Logger may not be started so print to stdout
|
%% Logger may not be started so print to stdout
|
||||||
io:format("~p~n", #{
|
io:format("~p~n", [
|
||||||
|
#{
|
||||||
'error_type' => ErrorType,
|
'error_type' => ErrorType,
|
||||||
'reason' => Reason,
|
'reason' => Reason,
|
||||||
'stacktrace' => Stacktrace,
|
'stacktrace' => Stacktrace,
|
||||||
'msg' => "Failed to register bridge V2 type"
|
'msg' => "Failed to register bridge V2 type"
|
||||||
}),
|
}
|
||||||
|
]),
|
||||||
erlang:raise(ErrorType, Reason, Stacktrace)
|
erlang:raise(ErrorType, Reason, Stacktrace)
|
||||||
after
|
after
|
||||||
global:del_lock(
|
global:del_lock(
|
||||||
|
|
Loading…
Reference in New Issue