diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2013-01-19 14:56:58 +0000 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2013-01-19 14:56:58 +0000 |
| commit | b34e93ce0108a982fc1fe6ac94e893187dd532e4 (patch) | |
| tree | 4df58aacd7479348146b35ddf1471019f5a93f0b | |
| parent | b0370eb8cab1251b72780f0884bc70d174c3f351 (diff) | |
| download | rabbitmq-server-git-b34e93ce0108a982fc1fe6ac94e893187dd532e4.tar.gz | |
cosmetic
| -rw-r--r-- | src/rabbit.erl | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index 7b8348fc31..0f3c52ca67 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -552,13 +552,11 @@ boot_error(Reason, Stacktrace) -> Args = [Reason, log_location(kernel), log_location(sasl)], boot_error(Reason, Fmt, Args, Stacktrace). +boot_error(Reason, Fmt, Args, not_available) -> + basic_boot_error(Reason, Fmt, Args); boot_error(Reason, Fmt, Args, Stacktrace) -> - case Stacktrace of - not_available -> basic_boot_error(Reason, Fmt, Args); - _ -> basic_boot_error(Reason, Fmt ++ - "Stack trace:~n ~p~n~n", - Args ++ [Stacktrace]) - end. + basic_boot_error(Reason, Fmt ++ "Stack trace:~n ~p~n~n", + Args ++ [Stacktrace]). basic_boot_error(Reason, Format, Args) -> io:format("~n~nBOOT FAILED~n===========~n~n" ++ Format, Args), |
