Skip to content

Commit

Permalink
keep sending error
Browse files Browse the repository at this point in the history
  • Loading branch information
mstdokumaci committed Nov 21, 2016
1 parent 3baf35b commit 0d4ca2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.exports = (limit) => {
if (!error) {
error = new Error('Unknown Error')
}
this.root().emit('error', this.key)
this.root().emit('error', this.key, error)
this.set({ state: 'error' })
this.set({ tryCount: this.get('tryCount') + 1 })
}
Expand Down

0 comments on commit 0d4ca2b

Please sign in to comment.