@@ -15,13 +15,15 @@ export class ClientErrorHandler implements ErrorHandler {
1515 if ( count && count <= 3 ) {
1616 logger . error ( `${ this . name } server encountered error: ${ _message } , ${ _error && _error . toString ( ) } ` ) ;
1717 return {
18- action : ErrorAction . Continue
18+ action : ErrorAction . Continue ,
19+ handled : true
1920 } ;
2021 }
2122
2223 logger . error ( `${ this . name } server encountered error and will shut down: ${ _message } , ${ _error && _error . toString ( ) } ` ) ;
2324 return {
24- action : ErrorAction . Shutdown
25+ action : ErrorAction . Shutdown ,
26+ handled : true
2527 } ;
2628 }
2729
@@ -30,7 +32,8 @@ export class ClientErrorHandler implements ErrorHandler {
3032 if ( this . restarts . length < 5 ) {
3133 logger . error ( `The ${ this . name } server crashed and will restart.` ) ;
3234 return {
33- action : CloseAction . Restart
35+ action : CloseAction . Restart ,
36+ handled : true
3437 } ;
3538 } else {
3639 const diff = this . restarts [ this . restarts . length - 1 ] - this . restarts [ 0 ] ;
@@ -45,14 +48,16 @@ export class ClientErrorHandler implements ErrorHandler {
4548 }
4649 } ) ;
4750 return {
48- action : CloseAction . DoNotRestart
51+ action : CloseAction . DoNotRestart ,
52+ handled : true
4953 } ;
5054 }
5155
5256 logger . error ( `The ${ this . name } server crashed and will restart.` ) ;
5357 this . restarts . shift ( ) ;
5458 return {
55- action : CloseAction . Restart
59+ action : CloseAction . Restart ,
60+ handled : true
5661 } ;
5762 }
5863 }
0 commit comments