diff options
| author | Tim Watson <tim@rabbitmq.com> | 2014-04-16 12:26:40 +0100 |
|---|---|---|
| committer | Tim Watson <tim@rabbitmq.com> | 2014-04-16 12:26:40 +0100 |
| commit | e199d1bb85989b6868a704bcb584786994fa4251 (patch) | |
| tree | 2aeaed3bd40df93bae112ef2beeb1b2bd34ae370 /src | |
| parent | 40323d836174c45509c17d7be3b2520f6e3f2647 (diff) | |
| download | rabbitmq-server-git-e199d1bb85989b6868a704bcb584786994fa4251.tar.gz | |
Better RPC diagnostics when the node is down
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_plugins_main.erl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/rabbit_plugins_main.erl b/src/rabbit_plugins_main.erl index b9fdfcd015..3b9d30f2e4 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) -> |
