summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTuncer Ayaz <tuncer.ayaz@gmail.com>2016-08-30 12:17:52 +0200
committerTuncer Ayaz <tuncer.ayaz@gmail.com>2016-08-30 12:24:11 +0200
commitd4b76391475ab5ddda80f7799bda3ee1745e8244 (patch)
treeb8664af2aa37359ca33f09d624e65f173c9bcdd1 /src
parent8ee9cc89969afd79bf8687dcdf978f1a09e01d48 (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.
Diffstat (limited to 'src')
-rw-r--r--src/rebar3.erl2
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).