senecajs / seneca

A microservices toolkit for Node.js.
http://senecajs.org
MIT License
3.95k stars 314 forks source link

why not immediately throw error about port already in use #882

Open flameleo11p opened 2 years ago

flameleo11p commented 2 years ago

// run ./server.js twice then ....

var Seneca = require('seneca') Seneca() .quiet() // only log errors .use(approver) .listen({type: 'tcp', port: 8260, pin: 'cmd:*'})

Error: listen EADDRINUSE: address already in use 0.0.0.0:8260

rjrodger commented 2 years ago

A bug - thanks! .quiet is hiding the error log also port conflicts should be fatal errors