From e9ac7caae42f8691e3206753c484406e7d5780ce Mon Sep 17 00:00:00 2001 From: Maurice Nonnekes Date: Thu, 16 May 2019 14:12:19 +0200 Subject: [PATCH] Properly print the error when releasing a job --- consumer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consumer.go b/consumer.go index a69b986..dfd01fa 100644 --- a/consumer.go +++ b/consumer.go @@ -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) } }