Pārlūkot izejas kodu

Advertise rebar3 wtf in error messages

pull/142/head
Fred Hebert pirms 10 gadiem
vecāks
revīzija
36563c0ab9
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +3
    -1
      src/rebar3.erl

+ 3
- 1
src/rebar3.erl Parādīt failu

@ -54,7 +54,8 @@ main(Args) ->
case code:which(Module) of
non_existing ->
?ERROR("Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace", []),
?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 wtf \"your command\"`", []);
_ ->
?ERROR(Module:format_error(Reason), [])
end,
@ -67,6 +68,7 @@ main(Args) ->
%% Dump this error to console
?ERROR("Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace", []),
?DEBUG("Uncaught error: ~p", [Error]),
?INFO("When submitting a bug report, please include the output of `rebar3 wtf \"your command\"`", []),
erlang:halt(1)
end.

Notiek ielāde…
Atcelt
Saglabāt