From af5096b6f071118ea680f3b03d2ab90a95e1a334 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Mon, 7 Dec 2009 10:07:01 -0700 Subject: [PATCH] Make sure to bail w/ return code of 1 when error has occurred --- src/rebar.erl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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.