Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

errors: add ERR_INVALID_OPT_TYPE and support options in validators.js #31251

Closed

Commits on Jan 20, 2020

  1. errors: introduce ERR_INVALID_OPT_TYPE for options of wrong type

    This adds `ERR_INVALID_OPT_TYPE` error that is the equivalent of
    `ERR_INVALID_ARG_TYPE` for options.
    lundibundi committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    5951669 View commit details
    Browse the repository at this point in the history
  2. errors: allow option validation with validators.js

    `name` argument is now able to be and object with a `name` and `type`
    keys. If `type` is `'option'` then `ERR_INVALID_OPT_TYPE` and
    `ERR_INVALID_OPT_VALUE` errors will be used.
    lundibundi committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    bd91796 View commit details
    Browse the repository at this point in the history