|
@ -272,7 +272,8 @@ handle_error({error, rebar_abort}) -> |
|
|
handle_error({error, {Module, Reason}}) -> |
|
|
handle_error({error, {Module, Reason}}) -> |
|
|
case code:which(Module) of |
|
|
case code:which(Module) of |
|
|
non_existing -> |
|
|
non_existing -> |
|
|
?ERROR("Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace", []), |
|
|
|
|
|
|
|
|
?CRASHDUMP("~p: ~p~n~p~n~n", [Module, Reason, erlang:get_stacktrace()]), |
|
|
|
|
|
?ERROR("Uncaught error in rebar_core. Run with DEBUG=1 to stacktrace or consult rebar3.crashdump", []), |
|
|
?DEBUG("Uncaught error: ~p ~p", [Module, Reason]), |
|
|
?DEBUG("Uncaught error: ~p ~p", [Module, Reason]), |
|
|
?INFO("When submitting a bug report, please include the output of `rebar3 report \"your command\"`", []); |
|
|
?INFO("When submitting a bug report, please include the output of `rebar3 report \"your command\"`", []); |
|
|
_ -> |
|
|
_ -> |
|
@ -285,7 +286,8 @@ handle_error({error, Error}) when is_list(Error) -> |
|
|
handle_error(Error) -> |
|
|
handle_error(Error) -> |
|
|
%% Nothing should percolate up from rebar_core; |
|
|
%% Nothing should percolate up from rebar_core; |
|
|
%% Dump this error to console |
|
|
%% Dump this error to console |
|
|
?ERROR("Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace", []), |
|
|
|
|
|
|
|
|
?CRASHDUMP("Error: ~p~n~p~n~n", [Error, erlang:get_stacktrace()]), |
|
|
|
|
|
?ERROR("Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump", []), |
|
|
?DEBUG("Uncaught error: ~p", [Error]), |
|
|
?DEBUG("Uncaught error: ~p", [Error]), |
|
|
case erlang:get_stacktrace() of |
|
|
case erlang:get_stacktrace() of |
|
|
[] -> ok; |
|
|
[] -> ok; |
|
|