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
1 changed files with 1 additions and 1 deletions

View File

@ -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",