diff --git a/src/script/hydra-eval-jobset b/src/script/hydra-eval-jobset index 108c59c8..99277fd4 100755 --- a/src/script/hydra-eval-jobset +++ b/src/script/hydra-eval-jobset @@ -799,7 +799,13 @@ sub checkJobsetWrapped { foreach my $job (values %{$jobs}) { next unless $job->{constituents}; - my $x = $drvPathToId{$job->{drvPath}} or die; + + if (defined $job->{error}) { + die "aggregate job ‘$job->{jobName}’ failed with the error: $job->{error}"; + } + + my $x = $drvPathToId{$job->{drvPath}} or + die "aggregate job ‘$job->{jobName}’ has no corresponding build record.\n"; foreach my $drvPath (@{$job->{constituents}}) { my $constituent = $drvPathToId{$drvPath}; if (defined $constituent) {