hydra-eval-jobset: emit a useful error if constituents errored

This commit is contained in:
Graham Christensen 2022-03-19 14:37:12 -04:00
parent 0c51de6334
commit 074a2f96bf

View file

@ -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) {