Browse Source

Merge pull request #1220 from gomoripeti/handle_error_crash

Handle control sequences in formatted errors
pull/1222/head
Fred Hebert 9 years ago
parent
commit
eccbfee95e
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/rebar3.erl

+ 2
- 2
src/rebar3.erl View File

@ -276,11 +276,11 @@ handle_error({error, {Module, Reason}}) ->
?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\"`", []);
_ -> _ ->
?ERROR(Module:format_error(Reason), [])
?ERROR("~s", [Module:format_error(Reason)])
end, end,
erlang:halt(1); erlang:halt(1);
handle_error({error, Error}) when is_list(Error) -> handle_error({error, Error}) when is_list(Error) ->
?ERROR(Error, []),
?ERROR("~s", [Error]),
erlang:halt(1); erlang:halt(1);
handle_error(Error) -> handle_error(Error) ->
%% Nothing should percolate up from rebar_core; %% Nothing should percolate up from rebar_core;

Loading…
Cancel
Save