mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
hook_deps: Fix to handle FileNo as tuple {FileNumber, CharacterPosition}
This commit is contained in:
parent
38fd9a3ed2
commit
d2e7b5ffa0
@ -169,7 +169,7 @@ check_iq_handlers_export({HookedFuns, _}, Exports) ->
|
|||||||
case is_exported(Mod, Fun, 1, Exports) of
|
case is_exported(Mod, Fun, 1, Exports) of
|
||||||
true -> ok;
|
true -> ok;
|
||||||
false ->
|
false ->
|
||||||
err("~s:~B: Error: "
|
err("~s:~p: Error: "
|
||||||
"iq handler is registered on unexported function: "
|
"iq handler is registered on unexported function: "
|
||||||
"~s:~s/1~n", [File, FileNo, Mod, Fun])
|
"~s:~s/1~n", [File, FileNo, Mod, Fun])
|
||||||
end
|
end
|
||||||
@ -184,7 +184,7 @@ analyze_iq_handlers({Add, Del}) ->
|
|||||||
case maps:is_key(Handler, Del) of
|
case maps:is_key(Handler, Del) of
|
||||||
true -> ok;
|
true -> ok;
|
||||||
false ->
|
false ->
|
||||||
err("~s:~B: Error: "
|
err("~s:~p: Error: "
|
||||||
"iq handler is added but not removed~n",
|
"iq handler is added but not removed~n",
|
||||||
[File, FileNo])
|
[File, FileNo])
|
||||||
end
|
end
|
||||||
@ -197,7 +197,7 @@ analyze_iq_handlers({Add, Del}) ->
|
|||||||
case maps:is_key(Handler, Add) of
|
case maps:is_key(Handler, Add) of
|
||||||
true -> ok;
|
true -> ok;
|
||||||
false ->
|
false ->
|
||||||
err("~s:~B: Error: "
|
err("~s:~p: Error: "
|
||||||
"iq handler is removed but not added~n",
|
"iq handler is removed but not added~n",
|
||||||
[File, FileNo])
|
[File, FileNo])
|
||||||
end
|
end
|
||||||
@ -224,7 +224,7 @@ analyze_hooks({Add, Del}) ->
|
|||||||
case maps:is_key(Key, Del1) of
|
case maps:is_key(Key, Del1) of
|
||||||
true -> ok;
|
true -> ok;
|
||||||
false ->
|
false ->
|
||||||
err("~s:~B: 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 removed~n",
|
||||||
[File, FileNo, Hook, Mod, Fun])
|
[File, FileNo, Hook, Mod, Fun])
|
||||||
end
|
end
|
||||||
@ -234,7 +234,7 @@ analyze_hooks({Add, Del}) ->
|
|||||||
case maps:is_key(Key, Add1) of
|
case maps:is_key(Key, Add1) of
|
||||||
true -> ok;
|
true -> ok;
|
||||||
false ->
|
false ->
|
||||||
err("~s:~B: Error: "
|
err("~s:~p: Error: "
|
||||||
"hook ~s->~s->~s is removed but was never added~n",
|
"hook ~s->~s->~s is removed but was never added~n",
|
||||||
[File, FileNo, Hook, Mod, Fun])
|
[File, FileNo, Hook, Mod, Fun])
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user