hydra-build: Give a nicer error message if the derivation is gone

This commit is contained in:
Eelco Dolstra 2013-06-14 11:01:53 +00:00
parent cceab7308b
commit 98a105fe69

View file

@ -114,6 +114,12 @@ sub doBuild {
my $dependents = [];
if (!isValidPath($drvPath)) {
$buildStatus = 3;
$errormsg = "derivation was garbage-collected prior to build";
goto done;
}
unless (all { isValidPath($_) } values(%outputs)) {
$isCachedBuild = 0;