diff options
author | Viacheslav Kovalev <kovyl2404@gmail.com> | 2015-05-22 18:08:35 +0300 |
---|---|---|
committer | Viacheslav Kovalev <kovyl2404@gmail.com> | 2015-05-22 18:08:35 +0300 |
commit | c2c1079ba241cb1eaa914f5457f21cba0875a61a (patch) | |
tree | 96b01726259748d649ec2abb6e85debaaee58fac | |
parent | 69ae48e8f15f0142bcd12645171571d8c5210fb5 (diff) |
Show stacktrace to errors caught in rebar3 module.
-rw-r--r-- | src/rebar3.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rebar3.erl b/src/rebar3.erl index 8fe6224..5321278 100644 --- a/src/rebar3.erl +++ b/src/rebar3.erl @@ -254,6 +254,11 @@ handle_error(Error) -> %% Dump this error to console ?ERROR("Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace", []), ?DEBUG("Uncaught error: ~p", [Error]), + case erlang:get_stacktrace() of + [] -> ok; + Trace -> + ?DEBUG("Stack trace to the error location: ~p", [Trace]) + end, ?INFO("When submitting a bug report, please include the output of `rebar3 report \"your command\"`", []), erlang:halt(1). |