Browse Source

Make sure to bail w/ return code of 1 when error has occurred

pull/3/head
Dave Smith 15 years ago
parent
commit
af5096b6f0
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      src/rebar.erl

+ 6
- 1
src/rebar.erl View File

@ -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.

Loading…
Cancel
Save