diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-09-27 14:12:11 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-09-27 14:12:11 -0500 |
commit | e9a3396e56679a11ac1caa3b47f1f196f0307d72 (patch) | |
tree | 0fca145d934313ebfdc45565a78ed9d3ff99f948 /src/rebar3.erl | |
parent | 1549b11b88dca340a1e471775d8387ca94e377e5 (diff) |
return error messages from providers
Diffstat (limited to 'src/rebar3.erl')
-rw-r--r-- | src/rebar3.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/rebar3.erl b/src/rebar3.erl index ba76f80..7c85f26 100644 --- a/src/rebar3.erl +++ b/src/rebar3.erl @@ -48,6 +48,9 @@ main(Args) -> ok; rebar_abort -> rebar_utils:delayed_halt(1); + {error, Error} -> + ?ERROR(Error, []), + rebar_utils:delayed_halt(1); Error -> %% Nothing should percolate up from rebar_core; %% Dump this error to console @@ -146,8 +149,7 @@ run_aux(State, Args) -> State4 = rebar_state:create_logic_providers(Providers++PluginProviders, State3), Task = rebar_state:get(State4, task, "help"), - rebar_core:process_command(rebar_state:command_args(State4, Args), list_to_atom(Task)), - ok. + rebar_core:process_command(rebar_state:command_args(State4, Args), list_to_atom(Task)). %% %% Parse command line arguments using getopt and also filtering out any |