forked from lix-project/hydra
Make evaluation fail with proper error when a input of type build is not available.
This commit is contained in:
parent
cb1395ee47
commit
a1b5020562
|
@ -95,7 +95,7 @@ sub fetchInputBuild {
|
||||||
, where => \ attrsToSQL($attrs, "me.id") })->single;
|
, 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";
|
#print STDERR "input `", $name, "': using build ", $prevBuild->id, "\n";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue