Skip to content

Commit

Permalink
Merge pull request bndr#129 from 7AC/master
Browse files Browse the repository at this point in the history
job: show HTTP response in case of error
  • Loading branch information
bndr authored Nov 25, 2018
2 parents 32a0b9d + 904e1d6 commit de43c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion job.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ func (j *Job) InvokeSimple(params map[string]string) (int64, error) {
}

if resp.StatusCode != 200 && resp.StatusCode != 201 {
return 0, errors.New("Could not invoke job " + j.GetName())
return 0, fmt.Errorf("Could not invoke job %q: %s", j.GetName(), resp.Status)
}

location := resp.Header.Get("Location")
Expand Down

0 comments on commit de43c03

Please sign in to comment.