Under the section https://nodejs.org/api/net.html#net_server_address it states that the error is passed to the listen() callback. This is incorrect. The error is passed to the server's 'error' event handler. Like so:
net.createServer()
.on('error', () => console.log('foo'))
.listen(80, () => console.log('bar'));
// Output: foo
Filing this instead of simply fixing this one occurrence b/c unsure if more cases like this exist, and don't have the time to investigate at the moment.
Under the section https://nodejs.org/api/net.html#net_server_address it states that the error is passed to the
listen()callback. This is incorrect. The error is passed to the server's'error'event handler. Like so:Filing this instead of simply fixing this one occurrence b/c unsure if more cases like this exist, and don't have the time to investigate at the moment.