Merge pull request #1161 from emqtt/emq24

Fix the 'case clause matching' exception
This commit is contained in:
Feng Lee 2017-07-24 09:48:25 +08:00 committed by GitHub
commit c349567450
1 changed files with 4 additions and 0 deletions

View File

@ -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;