Skip to content

Commit

Permalink
Trigger a non-zero script exit code if the cluster join command fails (
Browse files Browse the repository at this point in the history
  • Loading branch information
ioolkos authored and mths1 committed Feb 9, 2024
1 parent 2bfd9e7 commit 7eec611
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/vmq_server/src/vmq_server_cli.erl
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,7 @@ vmq_cluster_join_cmd() ->
vmq_cluster:recheck(),
[clique_status:text("Done")];
{error, Reason} ->
Text = io_lib:format("Couldn't join cluster due to ~p~n", [Reason]),
[clique_status:alert([clique_status:text(Text)])]
{error, {{badrpc, Reason}, Node}}
end
end,
clique:register_command(Cmd, KeySpecs, FlagSpecs, Callback).
Expand Down

0 comments on commit 7eec611

Please sign in to comment.