Browse Source

Print stacktrace in a more conventional way

Insert a newline before printing the stacktrace so that the term is
easier to read and copy. This is a more conventional way to print
traces, and is, for instance, the way it's done by make and python.
pull/1318/head
Tuncer Ayaz 8 years ago
parent
commit
d4b7639147
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/rebar3.erl

+ 1
- 1
src/rebar3.erl View File

@ -292,7 +292,7 @@ handle_error(Error) ->
case erlang:get_stacktrace() of
[] -> ok;
Trace ->
?DEBUG("Stack trace to the error location: ~p", [Trace])
?DEBUG("Stack trace to the error location: class="si">~n~p", [Trace])
end,
?INFO("When submitting a bug report, please include the output of `rebar3 report \"your command\"`", []),
erlang:halt(1).

Loading…
Cancel
Save