summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Smith <dizzyd@dizzyd.com>2009-12-03 09:41:10 -0700
committerDave Smith <dizzyd@dizzyd.com>2009-12-03 09:41:10 -0700
commita979f4f575fbb88a83b79685a2c17ff1db16520d (patch)
tree2c161282c0f0959aadbebd9a38d3f2b796f0336a
parent65a3ff0111c22cbd8d29bdca040bdc02156266cf (diff)
If failure is controlled (i.e. via ?FAIL macro), don't print out that it failed (expectation is that the caller already did that)
-rw-r--r--src/rebar_core.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rebar_core.erl b/src/rebar_core.erl
index 868a3e7..5b9c8c7 100644
--- a/src/rebar_core.erl
+++ b/src/rebar_core.erl
@@ -196,6 +196,8 @@ apply_command([{Type, Dir, File} | Rest], Command) ->
case catch(run_modules(Modules, Command, Config, File)) of
ok ->
apply_command(Rest, Command);
+ {error, failed} ->
+ error;
Other ->
?ERROR("~p failed while processing ~s: ~p", [Command, Dir, Other]),
error