fix(exhook): fix the error message of unknown hookpoint
Now if there is an unknown hookpoint, the error message is actually `{unknown_hookpoint,{error,badarg}}`, the hookpoint name information is lost
This commit is contained in:
parent
7fca34c11a
commit
9555401ce1
|
@ -231,7 +231,7 @@ resolve_hookspec(HookSpecs) when is_list(HookSpecs) ->
|
|||
end,
|
||||
case {lists:member(Name, AvailableHooks), lists:member(Name, MessageHooks)} of
|
||||
{false, _} ->
|
||||
error({unknown_hookpoint, Name});
|
||||
error({unknown_hookpoint, Name0});
|
||||
{true, false} ->
|
||||
Acc#{Name => #{}};
|
||||
{true, true} ->
|
||||
|
|
Loading…
Reference in New Issue