File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -410,7 +410,7 @@ export function requestHandler(
410
410
. then ( ( ) => {
411
411
_end . call ( this , chunk , encoding , cb ) ;
412
412
} )
413
- . catch ( e => {
413
+ . then ( null , e => {
414
414
logger . error ( e ) ;
415
415
_end . call ( this , chunk , encoding , cb ) ;
416
416
} ) ;
@@ -488,11 +488,11 @@ export function errorHandler(options?: {
488
488
*/
489
489
shouldHandleError ?( error : MiddlewareError ) : boolean ;
490
490
} ) : (
491
- error : MiddlewareError ,
492
- req : http . IncomingMessage ,
493
- res : http . ServerResponse ,
494
- next : ( error : MiddlewareError ) => void ,
495
- ) => void {
491
+ error : MiddlewareError ,
492
+ req : http . IncomingMessage ,
493
+ res : http . ServerResponse ,
494
+ next : ( error : MiddlewareError ) => void ,
495
+ ) => void {
496
496
return function sentryErrorMiddleware (
497
497
error : MiddlewareError ,
498
498
_req : http . IncomingMessage ,
You can’t perform that action at this time.
0 commit comments