diff --git a/waspc/data/Generator/templates/server/src/server.js b/waspc/data/Generator/templates/server/src/server.js index f2984051f..df04144ac 100644 --- a/waspc/data/Generator/templates/server/src/server.js +++ b/waspc/data/Generator/templates/server/src/server.js @@ -24,7 +24,7 @@ const startServer = async () => { server.listen(port) - server.on('error', () => { + server.on('error', (error) => { if (error.syscall !== 'listen') throw error const bind = typeof port === 'string' ? 'Pipe ' + port : 'Port ' + port // handle specific listen errors with friendly messages