From d4b76391475ab5ddda80f7799bda3ee1745e8244 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Tue, 30 Aug 2016 12:17:52 +0200 Subject: 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. --- src/rebar3.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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). -- cgit v1.1