diff options
| author | Tim Watson <tim@rabbitmq.com> | 2012-10-05 13:43:27 +0100 |
|---|---|---|
| committer | Tim Watson <tim@rabbitmq.com> | 2012-10-05 13:43:27 +0100 |
| commit | 883b004a371e37b29c5478d6afd46df42cf6c0e3 (patch) | |
| tree | a2c17bf21190f167f1c740aacde4aaa07254f42e /src | |
| parent | 0a45dd710b681b65c14df7f39b4820f2062facd3 (diff) | |
| download | rabbitmq-server-git-883b004a371e37b29c5478d6afd46df42cf6c0e3.tar.gz | |
oops
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit.erl | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/rabbit.erl b/src/rabbit.erl index 7c669599a0..4d3146c9a0 100644 --- a/src/rabbit.erl +++ b/src/rabbit.erl @@ -538,18 +538,19 @@ boot_error({error, {timeout_waiting_for_tables, _}}, _Stacktrace) -> end, basic_boot_error(Err ++ rabbit_nodes:diagnostics(Nodes) ++ "~n~n", []); -boot_error({Tag, [H|_]=Message}=Reason, Stacktrace) when is_atom(Tag) andalso +boot_error({Tag, [H|_]=Message}, Stacktrace) when is_atom(Tag) andalso is_integer(H) -> - ErrorFmt = "~s: ~s", - boot_error(ErrorFmt, Reason, Stacktrace); + Fmt = "Error description:~n ~s: ~s~n~n" ++ + "Log files (may contain more information):~n ~s~n ~s~n~n", + Args = [Tag, Message, log_location(kernel), log_location(sasl)], + boot_error(Fmt, Args, Stacktrace); boot_error(Reason, Stacktrace) -> - ErrorFmt = "~p", - boot_error(ErrorFmt, Reason, Stacktrace). - -boot_error(ErrorFmt, Reason, Stacktrace) -> - Fmt = "Error description:~n " ++ ErrorFmt ++ "~n~n" ++ + Fmt = "Error description:~n ~p~n~n" ++ "Log files (may contain more information):~n ~s~n ~s~n~n", Args = [Reason, log_location(kernel), log_location(sasl)], + boot_error(Fmt, Args, Stacktrace). + +boot_error(Fmt, Args, Stacktrace) -> case Stacktrace of not_available -> basic_boot_error(Fmt, Args); _ -> basic_boot_error(Fmt ++ "Stack trace:~n ~p~n~n", |
