Skip to content

Commit

Permalink
Parse error messages from scheduling failures
Browse files Browse the repository at this point in the history
  • Loading branch information
baierjan committed Dec 7, 2023
1 parent dda8c55 commit 1cde6cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OpenQA/CLI/schedule.pm
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ sub _create_jobs ($self, $client, $args, $param_file, $job_ids) {
say $job_count == 1 ? '1 job has been created:' : "$job_count jobs have been created:";
say ' - ' . $host_url->clone->path("tests/$_") for @$job_ids;
}
return 0 unless my $error = $json->{error};
return 0 unless my $error = $json->{error} // join("\n", map { $_->{error_message} } @{$json->{failed}});
print STDERR colored(['red'], $error, "\n");
return 1;
}
Expand Down

0 comments on commit 1cde6cb

Please sign in to comment.