Skip to content

errors: fix ERR_SOCKET_BAD_PORT message

Rodrigo Muino Tomonari requested to merge github/fork/Gioyik/error-message into master

The current message says 'Port should be > 0' meaning '0' is an invalid value. You can pass '0' to get a random port from the system. The correct message for this error is 'Port should be >= 0'.

A correct message for this type of error is being shown in the docs already: https://nodejs.org/api/errors.html#errors_class_rangeerror

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading