summaryrefslogtreecommitdiff
path: root/src/rabbit_plugins_main.erl
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
commitf4aea50da2974c3d90cf6c82c9ecc3da87df50aa (patch)
treeb9fcb01e52337cacc12a5c1b90c9ecf475d0cd45 /src/rabbit_plugins_main.erl
parenta41a85dfe4ccdaffaca0a96eadfa629408f8ec82 (diff)
downloadrabbitmq-server-f4aea50da2974c3d90cf6c82c9ecc3da87df50aa.tar.gz
Tidy up the progress output slightly.
Diffstat (limited to 'src/rabbit_plugins_main.erl')
-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 41d70724..33f69732 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])