Better error message if jobset doesn't evaluate to an attrset

This commit is contained in:
Eelco Dolstra 2017-04-11 13:01:15 +02:00
parent 7e3f12fe10
commit 585d3274e3
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -628,6 +628,9 @@ sub checkJobsetWrapped {
return;
}
die "Jobset contains a job with an empty name. Make sure the jobset evaluates to an attrset of jobs.\n"
if defined $jobs->{""};
$jobs->{$_}->{jobName} = $_ for keys %{$jobs};
my $jobOutPathMap = {};