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

This commit is contained in:
Dave Smith 2009-12-07 10:07:01 -07:00
parent e7277e69f0
commit af5096b6f0

View file

@ -27,4 +27,9 @@
-export([main/1]). -export([main/1]).
main(Args) -> main(Args) ->
rebar_core:run(Args). case catch(rebar_core:run(Args)) of
ok ->
ok;
_ ->
halt(1)
end.