diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2012-05-24 16:41:48 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2012-05-24 16:41:48 +0100 |
| commit | d7ff6ea6573a6ad290edda59a5a4ee61c1d3f697 (patch) | |
| tree | 5423c453af92e2e2e7926e78360316db5c780af8 /src | |
| parent | 76a4e6f689aa0cbe7bb56d1cfb1f054a39466d00 (diff) | |
| download | rabbitmq-server-git-d7ff6ea6573a6ad290edda59a5a4ee61c1d3f697.tar.gz | |
Add special case for i18n reasons.
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_control.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rabbit_control.erl b/src/rabbit_control.erl index 2a84f7b232..ad350d2814 100644 --- a/src/rabbit_control.erl +++ b/src/rabbit_control.erl @@ -156,6 +156,11 @@ start() -> {'EXIT', {badarg, _}} -> print_error("invalid parameter: ~p", [Args]), usage(); + {error, {Problem, Reason}} when is_atom(Problem); is_binary(Reason) -> + %% We handle this common case specially to avoid ~p since + %% that has i18n issues + print_error("~s: ~s", [Problem, Reason]), + rabbit_misc:quit(2); {error, Reason} -> print_error("~p", [Reason]), rabbit_misc:quit(2); |
