Skip to content

Commit 39a8c81

Browse files
committed
fixup
1 parent e7e72cd commit 39a8c81

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/handler/wrap-handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = class WrapHandler {
3838

3939
onError (err) {
4040
if (!this.#handler.onError) {
41-
throw new InvalidArgumentError('invalid onError method')
41+
throw err
4242
}
4343

4444
return this.#handler.onError?.(err)

test/retry-handler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ test('Should use retry-after header for retries (date)', async t => {
432432
})
433433

434434
test('Should retry with defaults', async t => {
435-
t = tspl(t, { plan: 2 })
435+
t = tspl(t, { plan: 3 })
436436

437437
let counter = 0
438438
const chunks = []

0 commit comments

Comments
 (0)