Skip to content

Commit da6dd81

Browse files
committed
cli
1 parent 5e83492 commit da6dd81

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

deps/rabbitmq_cli/lib/rabbitmq/cli/core/distribution.ex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ defmodule RabbitMQ.CLI.Core.Distribution do
4444
started
4545

4646
## EPMD can be stopped. Retry with EPMD
47-
{:error, _} ->
47+
{:error, _} = error ->
48+
:io.format(:standard_error, 'Node.start error = ~p', [error])
4849
:rabbit_nodes_common.ensure_epmd()
4950
Node.start(node_name, node_name_type)
5051
end
@@ -90,7 +91,8 @@ defmodule RabbitMQ.CLI.Core.Distribution do
9091
{:error, {{:already_started, pid}, _}} ->
9192
{:ok, pid}
9293

93-
{:error, reason} ->
94+
{:error, reason} = error ->
95+
:io.format(:standard_error, 'Distribution.start error = ~p', [error])
9496
start(node_name_type, attempts - 1, reason)
9597
end
9698
end

deps/rabbitmq_cli/lib/rabbitmqctl.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,7 @@ defmodule RabbitMQCtl do
663663
code.()
664664

665665
{:error, reason} ->
666-
{:error, ExitCodes.exit_config(), "Distribution failed: #{inspect(reason)}"}
666+
{:error, ExitCodes.exit_config(), "Distribution(cli) failed: #{inspect(reason)}"}
667667
end
668668

669669
{:fun, fun} ->
@@ -672,7 +672,7 @@ defmodule RabbitMQCtl do
672672
code.()
673673

674674
{:error, reason} ->
675-
{:error, ExitCodes.exit_config(), "Distribution failed: #{inspect(reason)}"}
675+
{:error, ExitCodes.exit_config(), "Distribution(fun: #{inspect(fun)}) failed: #{inspect(reason)}"}
676676
end
677677
end
678678
end

0 commit comments

Comments
 (0)