If failure is controlled (i.e. via ?FAIL macro), don't print out that it failed (expectation is that the caller already did that)

This commit is contained in:
Dave Smith 2009-12-03 09:41:10 -07:00
parent 65a3ff0111
commit a979f4f575

View file

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