From 1714e735f1e271cd997c9f1e055ac732d3c3ae69 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Fri, 24 Oct 2014 17:40:37 -0500 Subject: use error_format for prodiver error --- src/rebar3.erl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rebar3.erl b/src/rebar3.erl index a1916f5..22c08ca 100644 --- a/src/rebar3.erl +++ b/src/rebar3.erl @@ -49,6 +49,9 @@ main(Args) -> ok; rebar_abort -> rebar_utils:delayed_halt(1); + {error, {Module, Reason}} -> + ?ERROR(Module:format_error(Reason, []), []), + rebar_utils:delayed_halt(1); {error, Error} -> ?ERROR(Error++"~n", []), rebar_utils:delayed_halt(1); -- cgit v1.1