diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-11-09 18:29:38 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-11-09 18:29:38 -0600 |
commit | 79b1f2324006307e581ce19b24faf3b2edc5f8a9 (patch) | |
tree | acc4fcd12899f7eecffb4493df7b12830de20cbf /src/rebar3.erl | |
parent | 8d02c0767ed8417d71e2789e65039d30c5375bd0 (diff) |
move back to using format_error/1
Diffstat (limited to 'src/rebar3.erl')
-rw-r--r-- | src/rebar3.erl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/rebar3.erl b/src/rebar3.erl index e8bb8d5..ab874e5 100644 --- a/src/rebar3.erl +++ b/src/rebar3.erl @@ -56,8 +56,7 @@ main(Args) -> ?ERROR("Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace", []), ?DEBUG("Uncaught error: ~p ~p", [Module, Reason]); _ -> - {Error, _} = Module:format_error(Reason, []), - ?ERROR(Error, []) + ?ERROR(Module:format_error(Reason), []) end, rebar_utils:delayed_halt(1); {error, Error} when is_list(Error) -> |