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(
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          } ) ; 
@@ -488,11 +488,11 @@ export function errorHandler(options?: {
488488   */ 
489489  shouldHandleError ?( error : MiddlewareError ) : boolean ; 
490490} ) : ( 
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 { 
496496  return  function  sentryErrorMiddleware ( 
497497    error : MiddlewareError , 
498498    _req : http . IncomingMessage , 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments