Explorar o código

Merge pull request #1160 from emqtt/develop

Fix the 'case clause matching' exception
Feng Lee %!s(int64=8) %!d(string=hai) anos
pai
achega
2c4d452fa0
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/emqttd_cli.erl

+ 4 - 0
src/emqttd_cli.erl

@@ -115,6 +115,8 @@ cluster(["join", SNode]) ->
         ok ->
         ok ->
             ?PRINT_MSG("Join the cluster successfully.~n"),
             ?PRINT_MSG("Join the cluster successfully.~n"),
             cluster(["status"]);
             cluster(["status"]);
+        ignore ->
+            ?PRINT_MSG("Ignore.~n");
         {error, Error} ->
         {error, Error} ->
             ?PRINT("Failed to join the cluster: ~p~n", [Error])
             ?PRINT("Failed to join the cluster: ~p~n", [Error])
     end;
     end;
@@ -133,6 +135,8 @@ cluster(["force-leave", SNode]) ->
         ok ->
         ok ->
             ?PRINT_MSG("Remove the node from cluster successfully.~n"),
             ?PRINT_MSG("Remove the node from cluster successfully.~n"),
             cluster(["status"]);
             cluster(["status"]);
+        ignore ->
+            ?PRINT_MSG("Ignore.~n");
         {error, Error} ->
         {error, Error} ->
             ?PRINT("Failed to remove the node from cluster: ~p~n", [Error])
             ?PRINT("Failed to remove the node from cluster: ~p~n", [Error])
     end;
     end;