diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-10-24 17:40:37 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-10-24 17:40:45 -0500 |
commit | 1714e735f1e271cd997c9f1e055ac732d3c3ae69 (patch) | |
tree | 8c57d99d6df8349a9d8a5d73d6e791c52f4ee1d1 | |
parent | 72db6456c24cb37515368629509082c681fd32a9 (diff) |
use error_format for prodiver error
-rw-r--r-- | src/rebar3.erl | 3 |
1 files changed, 3 insertions, 0 deletions
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); |