Browse Source

Fix badmatch bug for reload_acl

linjun 7 years ago
parent
commit
3a2f6d5a6c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/emqx_mod_acl_internal.erl

+ 1 - 1
src/emqx_mod_acl_internal.erl

@@ -104,7 +104,7 @@ match(Credentials, Topic, [Rule|Rules]) ->
 -spec(reload_acl() -> ok | {error, term()}).
 -spec(reload_acl() -> ok | {error, term()}).
 reload_acl() ->
 reload_acl() ->
     try load_rules_from_file(acl_file()) of
     try load_rules_from_file(acl_file()) of
-        ok ->
+        _ ->
             emqx_logger:info("Reload acl_file ~s successfully", [acl_file()]),
             emqx_logger:info("Reload acl_file ~s successfully", [acl_file()]),
             ok;
             ok;
         {error, Error} ->
         {error, Error} ->