summaryrefslogtreecommitdiff
path: root/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/join_cluster_command.ex
diff options
context:
space:
mode:
Diffstat (limited to 'deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/join_cluster_command.ex')
-rw-r--r--deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/join_cluster_command.ex10
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/join_cluster_command.ex b/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/join_cluster_command.ex
index 11b9695ac5..809c0ee095 100644
--- a/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/join_cluster_command.ex
+++ b/deps/rabbitmq_cli/lib/rabbitmq/cli/ctl/commands/join_cluster_command.ex
@@ -78,6 +78,16 @@ defmodule RabbitMQ.CLI.Ctl.Commands.JoinClusterCommand do
"Error: cannot cluster node with itself: #{node_name}"}
end
+ def output(
+ {:error,
+ {:khepri_mnesia_migration_ex, :all_mnesia_nodes_must_run,
+ %{all_nodes: nodes, running_nodes: running}}},
+ _opts
+ ) do
+ {:error, RabbitMQ.CLI.Core.ExitCodes.exit_software(),
+ "Error: all mnesia nodes must run to join the cluster, mnesia nodes: #{inspect(nodes)}, running nodes: #{inspect(running)}"}
+ end
+
use RabbitMQ.CLI.DefaultOutput
def banner([target_node], %{node: node_name}) do