From be754bb6efc02a2755314b0e8cec7fbbc314fa10 Mon Sep 17 00:00:00 2001 From: Dave Smith Date: Mon, 14 Dec 2009 17:11:25 -0500 Subject: Make sure to fail if run_modules generates ANY error. Thanks, Rusty. :) --- src/rebar_core.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rebar_core.erl b/src/rebar_core.erl index c5a3dc6..e55d838 100644 --- a/src/rebar_core.erl +++ b/src/rebar_core.erl @@ -171,10 +171,10 @@ apply_commands([Command | Rest], Modules, Config, ModuleFile) -> ok -> apply_commands(Rest, Modules, Config, ModuleFile); {error, failed} -> - error; + ?FAIL; Other -> ?ERROR("~p failed while processing ~s: ~p", [Command, Dir, Other]), - error + ?FAIL end end. -- cgit v1.1