diff options
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) -> |