25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

hook_deps: Use precise name: hooks are added and later deleted, not removed

This commit is contained in:
Badlop 2024-05-15 12:55:11 +02:00
parent d2e7b5ffa0
commit 2554b51173

View File

@ -225,7 +225,7 @@ analyze_hooks({Add, Del}) ->
true -> ok; true -> ok;
false -> false ->
err("~s:~p: Error: " err("~s:~p: Error: "
"hook ~s->~s->~s is added but was never removed~n", "hook ~s->~s->~s is added but was never deleted~n",
[File, FileNo, Hook, Mod, Fun]) [File, FileNo, Hook, Mod, Fun])
end end
end, maps:to_list(Add1)), end, maps:to_list(Add1)),
@ -235,7 +235,7 @@ analyze_hooks({Add, Del}) ->
true -> ok; true -> ok;
false -> false ->
err("~s:~p: Error: " err("~s:~p: Error: "
"hook ~s->~s->~s is removed but was never added~n", "hook ~s->~s->~s is deleted but was never added~n",
[File, FileNo, Hook, Mod, Fun]) [File, FileNo, Hook, Mod, Fun])
end end
end, maps:to_list(Del1)). end, maps:to_list(Del1)).