From c4464954b0b5dd15a69a1b97282c382510a6532f Mon Sep 17 00:00:00 2001 From: Feng Lee Date: Mon, 24 Jul 2017 09:34:22 +0800 Subject: [PATCH] Fix the 'case clause matching' exception --- src/emqttd_cli.erl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/emqttd_cli.erl b/src/emqttd_cli.erl index d6301d484..fa3f7687d 100644 --- a/src/emqttd_cli.erl +++ b/src/emqttd_cli.erl @@ -115,6 +115,8 @@ cluster(["join", SNode]) -> ok -> ?PRINT_MSG("Join the cluster successfully.~n"), cluster(["status"]); + ignore -> + ?PRINT_MSG("Ignore.~n"); {error, Error} -> ?PRINT("Failed to join the cluster: ~p~n", [Error]) end; @@ -133,6 +135,8 @@ cluster(["force-leave", SNode]) -> ok -> ?PRINT_MSG("Remove the node from cluster successfully.~n"), cluster(["status"]); + ignore -> + ?PRINT_MSG("Ignore.~n"); {error, Error} -> ?PRINT("Failed to remove the node from cluster: ~p~n", [Error]) end;