summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Watson <tim@rabbitmq.com>2014-04-16 12:26:40 +0100
committerTim Watson <tim@rabbitmq.com>2014-04-16 12:26:40 +0100
commit8fc94c42d3cf8b6da16649875efafe54f1272ec3 (patch)
tree2aeaed3bd40df93bae112ef2beeb1b2bd34ae370
parent9e9fd12fd685837cc3ebee548c839e30836383c2 (diff)
downloadrabbitmq-server-8fc94c42d3cf8b6da16649875efafe54f1272ec3.tar.gz
Better RPC diagnostics when the node is down
-rw-r--r--src/rabbit_plugins_main.erl8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/rabbit_plugins_main.erl b/src/rabbit_plugins_main.erl
index b9fdfcd0..3b9d30f2 100644
--- a/src/rabbit_plugins_main.erl
+++ b/src/rabbit_plugins_main.erl
@@ -207,9 +207,11 @@ action(disable, Node, ToDisable0, Opts, PluginsFile, PluginsDir) ->
%%----------------------------------------------------------------------------
rpc_failure(Node) ->
- Msg = io_lib:format("Unable to contact node: ~p - "
- "To make your changes anyway, "
- "try again with --offline~n", [Node]),
+ RpcMsg = rabbit_nodes:diagnostics([Node]),
+ Msg = io_lib:format("Unable to contact ~p~n"
+ "To apply these changes anyway, "
+ "try again with --offline~n"
+ "~s", [Node, RpcMsg]),
throw({error_string, Msg}).
print_error(Format, Args) ->