Files
node/test/parallel
Sagi Tsofan 82ea7058b6 lib: http server, friendly error messages
Improved error message description for the http server binding errors.

Currently changed only in `setupListenHandle`, but needs to be
change all over.

Added new `uvExceptionWithHostPort` function (+export) in
`lib/internal/error.js` that extracts the error message defined by
libuv, using the error code, and returns an error object with the
full error description.

example:
old error message: `listen EADDRINUSE`
new error message: `listen EADDRINUSE: Address already in use`

Removed exportable function `_exceptionWithHostPort` from
`lib/util.js` - exported by accident

Replaced `exceptionWithHostPort` to the new function
`uvExceptionWithHostPort` for a more detailed error.

Fixes: https://github.com/nodejs/node/issues/22936

PR-URL: https://github.com/nodejs/node/pull/22995
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2018-10-11 21:21:36 -07:00
..
2018-09-27 13:36:23 +02:00
2018-09-27 13:25:18 +02:00
2018-08-27 13:37:20 +02:00
2018-06-27 11:37:17 -04:00
2018-08-09 14:11:24 +02:00
2018-05-19 17:55:57 +02:00
2018-09-23 16:36:24 -07:00
2018-09-11 16:58:16 +08:00
2018-09-11 16:58:16 +08:00
2018-06-01 11:17:28 +02:00
2018-08-27 14:08:43 +02:00
2018-05-20 14:15:56 -07:00
2018-09-27 11:50:14 -04:00