File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed
Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -161,26 +161,7 @@ try {
161161 const port = typeof addr === 'string' ? addr : addr ?. port ;
162162 console . log ( `Server listening on port ${ port } ` ) ;
163163 } ) ;
164-
165- server . on ( 'error' , ( error : any ) => {
166- if ( error . code === 'EADDRINUSE' ) {
167- console . error ( `Port ${ PORT } is already in use` ) ;
168- process . exit ( 1 ) ;
169- } else {
170- console . error ( 'Error starting server:' , error ) ;
171- process . exit ( 1 ) ;
172- }
173- } ) ;
174164
175- process . on ( 'uncaughtException' , ( error ) => {
176- console . error ( 'Uncaught exception:' , error ) ;
177- process . exit ( 1 ) ;
178- } ) ;
179-
180- process . on ( 'unhandledRejection' , ( error ) => {
181- console . error ( 'Unhandled rejection:' , error ) ;
182- process . exit ( 1 ) ;
183- } ) ;
184165} catch ( error ) {
185166 console . error ( 'Failed to start server:' , error ) ;
186167 process . exit ( 1 ) ;
You can’t perform that action at this time.
0 commit comments