Merge pull request #12440 from sergelogvinov/hook-name

print failed hook name
pull/12045/merge
Joe Julian 6 months ago committed by GitHub
commit 35e94bb99d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -772,7 +772,7 @@ func (c *Client) waitForJob(obj runtime.Object, name string) (bool, error) {
if c.Type == batch.JobComplete && c.Status == "True" {
return true, nil
} else if c.Type == batch.JobFailed && c.Status == "True" {
return true, errors.Errorf("job failed: %s", c.Reason)
return true, errors.Errorf("job %s failed: %s", name, c.Reason)
}
}

Loading…
Cancel
Save