Better error message

This commit is contained in:
Eelco Dolstra 2015-04-14 15:16:24 +02:00
parent 5a61aefe4f
commit 01cd6397cb

View file

@ -326,7 +326,7 @@ sub checkSomeJobset {
if (scalar @ARGV == 2) {
my $projectName = $ARGV[0];
my $jobsetName = $ARGV[1];
my $jobset = $db->resultset('Jobsets')->find($projectName, $jobsetName) or die;
my $jobset = $db->resultset('Jobsets')->find($projectName, $jobsetName) or die "$0: specified jobset does not exist\n";
exit checkJobset($jobset);
}