diff options
author | Simon MacMullen <simon@rabbitmq.com> | 2014-03-12 11:58:33 +0000 |
---|---|---|
committer | Simon MacMullen <simon@rabbitmq.com> | 2014-03-12 11:58:33 +0000 |
commit | 42bc5b0aa24178987ea1020dea543789eb7f9426 (patch) | |
tree | 12a5d2db543643907e9fd3ce1186f215fb5ffbbd /src/rabbit_nodes.erl | |
parent | be2e9240cc5f1014f7cb9ab6f22d186e409f59bb (diff) | |
download | rabbitmq-server-42bc5b0aa24178987ea1020dea543789eb7f9426.tar.gz |
Since we always show the raw error and the expanded error let's get format_inet_error to do that.
Diffstat (limited to 'src/rabbit_nodes.erl')
-rw-r--r-- | src/rabbit_nodes.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_nodes.erl b/src/rabbit_nodes.erl index b0dcabf3..9965c998 100644 --- a/src/rabbit_nodes.erl +++ b/src/rabbit_nodes.erl @@ -77,8 +77,8 @@ diagnostics_node(Node) -> {Name, Host} = parts(Node), case names(Host) of {error, EpmdReason} -> - {"- unable to connect to epmd on ~s: ~w (~s)", - [Host, EpmdReason, rabbit_misc:format_inet_error(EpmdReason)]}; + {"- unable to connect to epmd on ~s: ~s", + [Host, rabbit_misc:format_inet_error(EpmdReason)]}; {ok, NamePorts} -> [{"- ~s:", [Node]} | diagnostics_node0(Name, Host, NamePorts)] end. @@ -104,7 +104,7 @@ diagnostics_node0(Name, Host, NamePorts) -> [{" * TCP connection succeeded~n" " * suggestion: is the cookie set correctly?", []}]; {error, Reason} -> - [{" * can't establish TCP connection, reason: ~p~n" + [{" * can't establish TCP connection, reason: ~s~n" " * suggestion: blocked by firewall?", [rabbit_misc:format_inet_error(Reason)]}] end] |