summaryrefslogtreecommitdiff
path: root/src/rebar.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar.erl')
-rw-r--r--src/rebar.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rebar.erl b/src/rebar.erl
index 1e44293..0024401 100644
--- a/src/rebar.erl
+++ b/src/rebar.erl
@@ -50,6 +50,10 @@ main(Args) ->
case catch(rebar_core:run(Args)) of
ok ->
ok;
- _ ->
+ {error, failed} ->
+ halt(1);
+ Error ->
+ %% Nothing should percolate up from rebar_core; dump this error to console
+ io:format("Uncaught error in rebar_core: ~p\n", [Error]),
halt(1)
end.