Browse Source

fix: respect atom name convention

EMQ-YangM 3 years ago
parent
commit
6879df9c5c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/emqx_authz/src/emqx_authz_api_sources.erl

+ 1 - 1
apps/emqx_authz/src/emqx_authz_api_sources.erl

@@ -319,7 +319,7 @@ lookup_from_local_node(Type) ->
             Metrics = emqx_plugin_libs_metrics:get_metrics(authz_metrics, Type),
             {ok, {NodeId, connected, Metrics, #{}}}
     catch
-        Reason -> {error, {NodeId, list_to_binary(io_lib:format("~p", [Reason]))}}
+        _:Reason -> {error, {NodeId, list_to_binary(io_lib:format("~p", [Reason]))}}
     end.
 
 lookup_from_all_nodes(Type) ->