summaryrefslogtreecommitdiff
path: root/src/rebar.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar.erl')
-rw-r--r--src/rebar.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/rebar.erl b/src/rebar.erl
index fe1821b..0e92731 100644
--- a/src/rebar.erl
+++ b/src/rebar.erl
@@ -27,4 +27,9 @@
-export([main/1]).
main(Args) ->
- rebar_core:run(Args).
+ case catch(rebar_core:run(Args)) of
+ ok ->
+ ok;
+ _ ->
+ halt(1)
+ end.