summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-03-19 16:44:43 +0000
committerSimon MacMullen <simon@rabbitmq.com>2014-03-19 16:44:43 +0000
commiteb51e28dd80bfd3e9dc799f2592813318a2ccbfb (patch)
treeb9fcb01e52337cacc12a5c1b90c9ecf475d0cd45
parent7866628eedbf92a14ebdda48e3786ccf25705071 (diff)
downloadrabbitmq-server-git-eb51e28dd80bfd3e9dc799f2592813318a2ccbfb.tar.gz
Tidy up the progress output slightly.
-rw-r--r--src/rabbit_plugins_main.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rabbit_plugins_main.erl b/src/rabbit_plugins_main.erl
index 41d7072439..33f69732fc 100644
--- a/src/rabbit_plugins_main.erl
+++ b/src/rabbit_plugins_main.erl
@@ -331,17 +331,17 @@ rpc_call(Node, Mod, Action, Args) ->
end.
rpc_progress(Key, Node, Action) ->
- case rpc:nb_yield(Key, 100) of
+ case rpc:nb_yield(Key, 1000) of
timeout -> io:format("."),
rpc_progress(Key, Node, Action);
{value, {badrpc, nodedown}} ->
- io:format(". error: Unable to contact ~p.~n ", [Node]),
+ io:format(". error.~nUnable to contact ~p.~n ", [Node]),
io:format("Please start the broker to apply "
"your changes.~n");
{value, ok} ->
- io:format(". done: Plugin(s) ~pd.~n", [Action]);
+ io:format(". done.~n", []);
{value, Error} ->
- io:format(". error: Unable to ~p plugin(s).~n"
+ io:format(". error.~nUnable to ~p plugin(s).~n"
"Please restart the broker to apply your changes.~n"
"Error: ~p~n",
[Action, Error])