Skip to content

Commit

Permalink
Use the wrap error when throwing error
Browse files Browse the repository at this point in the history
  • Loading branch information
git-hulk committed Sep 28, 2023
1 parent 4180f84 commit 3eedc56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/redis_v2/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func (e *Engine) publishJob(job engine.Job) (jobID string, err error) {
}
err = e.pool.Add(job)
if err != nil {
return job.ID(), fmt.Errorf("pool: %s", err)
return job.ID(), fmt.Errorf("pool: %w", err)
}

if delaySecond == 0 {
Expand Down

0 comments on commit 3eedc56

Please sign in to comment.