25
1
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:
Evgeniy Khramtsov 2017-01-23 21:52:25 +03:00
parent 8b5e6e4a13
commit 0ce3a3665a

View File

@ -379,7 +379,7 @@ safe_apply(Hook, Module, Function, Args) ->
true -> true ->
apply(Module, Function, Args) apply(Module, Function, Args)
end 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" ?ERROR_MSG("Hook ~p crashed when running ~p:~p/~p:~n"
"** Reason = ~p~n" "** Reason = ~p~n"
"** Arguments = ~p", "** Arguments = ~p",