lib: combine similar error codes
There two similar error codes in lib: ERR_VALUE_OUT_OF_RANGE
and ERR_OUT_OF_RANGE
. This change is to:
- reduce them into
ERR_VALUE_OUT_OF_RANGE
- make some error messages more detailed
Fix: https://github.com/nodejs/node/issues/17603
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines