mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Make sure only {exit, normal} is not catched when executing a hook
This commit is contained in:
parent
8b5e6e4a13
commit
0ce3a3665a
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue