diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2016-08-30 12:17:52 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2016-08-30 12:24:11 +0200 |
commit | d4b76391475ab5ddda80f7799bda3ee1745e8244 (patch) | |
tree | b8664af2aa37359ca33f09d624e65f173c9bcdd1 | |
parent | 8ee9cc89969afd79bf8687dcdf978f1a09e01d48 (diff) |
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.
-rw-r--r-- | src/rebar3.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar3.erl b/src/rebar3.erl index d3ea15f..c665f20 100644 --- a/src/rebar3.erl +++ b/src/rebar3.erl @@ -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:~n~p", [Trace]) end, ?INFO("When submitting a bug report, please include the output of `rebar3 report \"your command\"`", []), erlang:halt(1). |