Skip to content

Commit

Permalink
onErrorWrap should pass all params. Fixes choojs/choo#142
Browse files Browse the repository at this point in the history
  • Loading branch information
timwis committed Jul 8, 2016
1 parent c8fd64b commit 678aec9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ function defaultOnError (err) {
}

function wrapOnError (onError) {
return function onErrorWrap (err) {
if (err) onError(err)
return function onErrorWrap (err, state, createSend) {
if (err) onError(err, state, createSend)
}
}

0 comments on commit 678aec9

Please sign in to comment.