소스 검색

Show stacktrace to errors caught in rebar3 module.

pull/469/head
Viacheslav Kovalev 10 년 전
부모
커밋
c2c1079ba2
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).

불러오는 중...
취소
저장