diff --git a/src/lib/Hydra/Helper/AddBuilds.pm b/src/lib/Hydra/Helper/AddBuilds.pm index f4a16ab6..917c765f 100644 --- a/src/lib/Hydra/Helper/AddBuilds.pm +++ b/src/lib/Hydra/Helper/AddBuilds.pm @@ -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";