Make sure to fail if run_modules generates ANY error. Thanks, Rusty. :)

This commit is contained in:
Dave Smith 2009-12-14 17:11:25 -05:00
parent 537eaa3bba
commit be754bb6ef

View file

@ -171,10 +171,10 @@ apply_commands([Command | Rest], Modules, Config, ModuleFile) ->
ok -> ok ->
apply_commands(Rest, Modules, Config, ModuleFile); apply_commands(Rest, Modules, Config, ModuleFile);
{error, failed} -> {error, failed} ->
error; ?FAIL;
Other -> Other ->
?ERROR("~p failed while processing ~s: ~p", [Command, Dir, Other]), ?ERROR("~p failed while processing ~s: ~p", [Command, Dir, Other]),
error ?FAIL
end end
end. end.