From f4aea50da2974c3d90cf6c82c9ecc3da87df50aa Mon Sep 17 00:00:00 2001 From: Simon MacMullen Date: Wed, 19 Mar 2014 16:44:43 +0000 Subject: Tidy up the progress output slightly. --- src/rabbit_plugins_main.erl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/rabbit_plugins_main.erl') 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]) -- cgit v1.2.1