File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -642,16 +642,15 @@ export const spinner = () => {
642642 unblock ( ) ;
643643 } ;
644644
645- const handleExit = ( code : number , error ?: unknown ) => {
645+ const handleExit = ( code : number ) => {
646646 const message = code > 1 ? 'Something went wrong' : 'Canceled' ;
647647 if ( isSpinnerActive ) stop ( message , code ) ;
648- if ( error ) console . error ( error ) ;
649648 } ;
650649
651650 // Reference: https://nodejs.org/api/process.html#event-uncaughtexception
652- process . on ( 'uncaughtException ' , ( error ) => handleExit ( 2 , error ) ) ;
651+ process . on ( 'uncaughtExceptionMonitor ' , ( ) => handleExit ( 2 ) ) ;
653652 // Reference: https://nodejs.org/api/process.html#event-unhandledrejection
654- process . on ( 'unhandledRejection' , ( error ) => handleExit ( 2 , error ) ) ;
653+ process . on ( 'unhandledRejection' , ( ) => handleExit ( 2 ) ) ;
655654 // Reference Signal Events: https://nodejs.org/api/process.html#signal-events
656655 process . on ( 'SIGINT' , ( ) => handleExit ( 1 ) ) ;
657656 process . on ( 'SIGTERM' , ( ) => handleExit ( 1 ) ) ;
You can’t perform that action at this time.
0 commit comments