Skip to content

Commit 366264f

Browse files
authored
use then(null, e rather than catch(e
1 parent 870ccce commit 366264f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/node/src/handlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ export function requestHandler(
410410
.then(() => {
411411
_end.call(this, chunk, encoding, cb);
412412
})
413-
.catch(e => {
413+
.then(null, e => {
414414
logger.error(e);
415415
_end.call(this, chunk, encoding, cb);
416416
});

0 commit comments

Comments
 (0)