diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2010-10-17 11:42:08 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2010-10-17 11:42:08 +0100 |
commit | 133cde4888174bc7d9a294cdf1895ae4ed274708 (patch) | |
tree | 7d9c3aeff925c66e0bf95b6c246b88951bb9c61a /src/rabbit_multi.erl | |
parent | 717a475abd6d11522cdd86338201134c9fb74eae (diff) | |
parent | 4ee9f333afe549f6aab8dffd97d2488bd1a72b6d (diff) | |
download | rabbitmq-server-133cde4888174bc7d9a294cdf1895ae4ed274708.tar.gz |
merge heads
Diffstat (limited to 'src/rabbit_multi.erl')
-rw-r--r-- | src/rabbit_multi.erl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/rabbit_multi.erl b/src/rabbit_multi.erl index 5cfd6a5c..b48d0aa3 100644 --- a/src/rabbit_multi.erl +++ b/src/rabbit_multi.erl @@ -64,20 +64,20 @@ start() -> io:format("done.~n"), halt(); {'EXIT', {function_clause, [{?MODULE, action, _} | _]}} -> - error("invalid command '~s'", - [lists:flatten( - rabbit_misc:intersperse(" ", FullCommand))]), + print_error("invalid command '~s'", + [lists:flatten( + rabbit_misc:intersperse(" ", FullCommand))]), usage(); timeout -> - error("timeout starting some nodes.", []), + print_error("timeout starting some nodes.", []), halt(1); Other -> - error("~p", [Other]), + print_error("~p", [Other]), halt(2) end end. -error(Format, Args) -> +print_error(Format, Args) -> rabbit_misc:format_stderr("Error: " ++ Format ++ "~n", Args). parse_args([Command | Args]) -> |