File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,12 @@ process.on('uncaughtException', async (err: any) => {
45
45
46
46
if ( err . code === 'EADDRINUSE' ) {
47
47
error (
48
- `${ chalk . red (
49
- `Port ${ err . port } is already in use.\n` ,
50
- ) } \n This could be due to one of your serverless functions intializing a server to listen on a specific port\n` +
51
- 'without closing the port.\n' ,
48
+ `${ chalk . red ( `Port ${ err . port } is already in use` ) } \n\n` +
49
+ `This could be due to one of your serverless functions initializing a server\n` +
50
+ `to listen on port ${ err . port } without properly closing it.\n\n` +
51
+ `To resolve this issue, try the following:\n` +
52
+ `1. Check if any other applications are using port ${ err . port } \n` +
53
+ `2. Review your serverless functions for any lingering server connections\n` ,
52
54
{ exit : false } ,
53
55
)
54
56
} else {
You can’t perform that action at this time.
0 commit comments