ソースを参照

Merge pull request #469 from kovyl2404/show-stacktrace

Show stacktrace to errors caught in rebar3 module.
pull/472/head
Tristan Sloughter 10年前
コミット
b7acb56f47
1個のファイルの変更5行の追加0行の削除
  1. +5
    -0
      src/rebar3.erl

+ 5
- 0
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).

読み込み中…
キャンセル
保存