Skip to content

Commit

Permalink
Merge pull request #37 from ericmittelhammer/pass-error-to-fail-handler
Browse files Browse the repository at this point in the history
pass the error supplied to the done callback on through the fail handler
  • Loading branch information
timgit committed Oct 16, 2017
2 parents 248e212 + 9532664 commit 1622e1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class Manager extends EventEmitter {
if(!error)
return this.complete(job.id, response);

return this.fail(job.id)
return this.fail(job.id, error)
.then(() => this.emit(events.failed, {job, error}));
};

Expand Down

0 comments on commit 1622e1a

Please sign in to comment.