From 585d3274e38ebc5431555e8b9967b88d1146bd44 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 11 Apr 2017 13:01:15 +0200 Subject: [PATCH] Better error message if jobset doesn't evaluate to an attrset --- src/script/hydra-eval-jobset | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/script/hydra-eval-jobset b/src/script/hydra-eval-jobset index 1ac9b06b..2025404f 100755 --- a/src/script/hydra-eval-jobset +++ b/src/script/hydra-eval-jobset @@ -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 = {};