Make evaluation fail with proper error when a input of type build is not available.

This commit is contained in:
Rob Vermaas 2014-11-18 10:59:04 +01:00
parent cb1395ee47
commit a1b5020562

View file

@ -95,7 +95,7 @@ sub fetchInputBuild {
, where => \ attrsToSQL($attrs, "me.id") })->single;
}
return () if !defined $prevBuild || !isValidPath(getMainOutput($prevBuild)->path);
die "Input $name: No builds available at $value" if !defined $prevBuild || !isValidPath(getMainOutput($prevBuild)->path);
#print STDERR "input `", $name, "': using build ", $prevBuild->id, "\n";