Skip to content

Commit

Permalink
Better error message if jobset doesn't evaluate to an attrset
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Apr 11, 2017
1 parent 7e3f12f commit 585d327
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/script/hydra-eval-jobset
Expand Up @@ -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 = {};
Expand Down

0 comments on commit 585d327

Please sign in to comment.