Ver código fonte

Merge pull request #1220 from gomoripeti/handle_error_crash

Handle control sequences in formatted errors
pull/1222/head
Fred Hebert 9 anos atrás
pai
commit
eccbfee95e
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      src/rebar3.erl

+ 2
- 2
src/rebar3.erl Ver arquivo

@ -276,11 +276,11 @@ handle_error({error, {Module, Reason}}) ->
?DEBUG("Uncaught error: ~p ~p", [Module, Reason]),
?INFO("When submitting a bug report, please include the output of `rebar3 report \"your command\"`", []);
_ ->
?ERROR(Module:format_error(Reason), [])
?ERROR("~s", [Module:format_error(Reason)])
end,
erlang:halt(1);
handle_error({error, Error}) when is_list(Error) ->
?ERROR(Error, []),
?ERROR("~s", [Error]),
erlang:halt(1);
handle_error(Error) ->
%% Nothing should percolate up from rebar_core;

Carregando…
Cancelar
Salvar