diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2016-06-05 20:57:10 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2016-06-05 20:57:10 -0400 |
commit | eccbfee95e3176c570f1ff7e22e5ca3af30cb442 (patch) | |
tree | e0cceb826050ef22a0e3a5d9350482963ec01bfd /src | |
parent | e1f3473ca35298d2a4fbaaf32ff8e85c8b91c7ca (diff) | |
parent | cc2e5f78764809909d81c8c3fb59627c2d40def2 (diff) |
Merge pull request #1220 from gomoripeti/handle_error_crash
Handle control sequences in formatted errors
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar3.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rebar3.erl b/src/rebar3.erl index ff0ab6a..a1e2975 100644 --- a/src/rebar3.erl +++ b/src/rebar3.erl @@ -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; |