Skip to content

errors: similar error codes [VALUE_OUT_OF_RANGE] and [OUT_OF_RANGE] #17603

@starkwang

Description

@starkwang

Now there are two similar error codes in lib:

Should we reduce them into one?

IMHO, the error message of ERR_VALUE_OUT_OF_RANGE is more detailed instead of a simple string('The "%s" argument is out of range') of ERR_OUT_OF_RANGE, so we might be able to migrate the ERR_OUT_OF_RANGE into ERR_VALUE_OUT_OF_RANGE.

  • Version: nodejs/node:master
  • Platform: all
  • Subsystem: errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    errorsIssues and PRs related to JavaScript errors originated in Node.js core.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions