Skip to content

Commit

Permalink
Update response-error.js
Browse files Browse the repository at this point in the history
Co-authored-by: Robert Nagy <ronagy@icloud.com>
  • Loading branch information
mertcanaltin and ronag committed Jun 21, 2024
1 parent 821ea1d commit 463f9a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/interceptor/response-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ class Handler extends DecoratorHandler {
}
}

module.exports = (dispatch) => (opts, handler) =>
dispatch(opts, new Handler(opts, { handler }))
module.exports = (dispatch) => (opts, handler) => opts.throwOnError ?
dispatch(opts, new Handler(opts, { handler })) : dispatch(opts, handler)

0 comments on commit 463f9a5

Please sign in to comment.