mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Make sure only {exit, normal} is not catched when executing a hook
This commit is contained in:
parent
8b5e6e4a13
commit
0ce3a3665a
@ -379,7 +379,7 @@ safe_apply(Hook, Module, Function, Args) ->
|
||||
true ->
|
||||
apply(Module, Function, Args)
|
||||
end
|
||||
catch E:R when E /= exit, R /= normal ->
|
||||
catch E:R when E /= exit; R /= normal ->
|
||||
?ERROR_MSG("Hook ~p crashed when running ~p:~p/~p:~n"
|
||||
"** Reason = ~p~n"
|
||||
"** Arguments = ~p",
|
||||
|
Loading…
Reference in New Issue
Block a user