Skip to content

Commit

Permalink
Properly print the error when releasing a job
Browse files Browse the repository at this point in the history
  • Loading branch information
prep committed May 16, 2019
1 parent 7c49e76 commit e9ac7ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func (consumer *Consumer) clientManager(client *Client) (err error) {
defer func() {
if job != nil {
if e := client.Release(job, job.Priority, 0); e != nil {
consumer.options.LogError("Unable to finish job %d: %s", job.ID, err)
consumer.options.LogError("Unable to release job %d: %s", job.ID, e)
}
}

Expand Down

0 comments on commit e9ac7ca

Please sign in to comment.