diff --git a/src/mod_http_api.erl b/src/mod_http_api.erl index 73a072059..c4fae2022 100644 --- a/src/mod_http_api.erl +++ b/src/mod_http_api.erl @@ -188,8 +188,8 @@ check_permissions2(#request{ip={IP, _Port}}, Call, _Policy) -> true -> {allowed, Call, admin}; _ -> unauthorized_response() end; - _E -> - ?DEBUG("Unauthorized: ~p", [_E]), + E -> + ?DEBUG("Unauthorized: ~p", [E]), unauthorized_response() end; check_permissions2(_Request, _Call, _Policy) ->