FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

errors: improve ERR_INVALID_OPT_VALUE message by lundibundi · Pull Request #34671 · nodejs/node · GitHub

/ node Public

errors: improve ERR_INVALID_OPT_VALUE message - #34671

Closed
lundibundi wants to merge 2 commits into
nodejs:masterfrom
lundibundi:improve-errors-opt-value
Closed

errors: improve ERR_INVALID_OPT_VALUE message#34671
lundibundi wants to merge 2 commits into
nodejs:masterfrom
lundibundi:improve-errors-opt-value

Conversation

Copy link
Copy Markdown
Member
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

I also thought of changing the message from always having the quotes (i.e. "42" -> 42) around value to make it easier to distinguish between different value types (i.e. string vs number), wdyt?

* use util.inspect for value presentation
* allow to optionally specify error reason
nodejs-github-bot added child_process Issues and PRs related to the child_process subsystem. errors Issues and PRs related to JavaScript errors originated in Node.js core. net Issues and PRs related to the net subsystem. labels Aug 7, 2020

Copy link
Copy Markdown
Collaborator

Comment thread lib/internal/errors.js Outdated
Comment thread test/parallel/test-crypto-keygen.js Outdated

Trott left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Left two optional nits, but looks good to me with or without them.

lundibundi requested a review from a team as a code owner August 10, 2020 16:06
lundibundi requested a review from a team August 10, 2020 16:06
lundibundi added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 14, 2020
github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 14, 2020

Copy link
Copy Markdown
Collaborator

lundibundi added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Aug 14, 2020
mmarchini pushed a commit that referenced this pull request Aug 15, 2020
* use util.inspect for value presentation
* allow to optionally specify error reason

PR-URL: #34671
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>

Copy link
Copy Markdown
Contributor

Landed in 8da8ec9

mmarchini closed this Aug 15, 2020
MylesBorins pushed a commit that referenced this pull request Aug 17, 2020
* use util.inspect for value presentation
* allow to optionally specify error reason

PR-URL: #34671
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>
danielleadams mentioned this pull request Aug 20, 2020
BethGriggs pushed a commit that referenced this pull request Aug 20, 2020
* use util.inspect for value presentation
* allow to optionally specify error reason

PR-URL: #34671
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>
MylesBorins pushed a commit that referenced this pull request Nov 3, 2020
* use util.inspect for value presentation
* allow to optionally specify error reason

PR-URL: #34671
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>
MylesBorins mentioned this pull request Nov 3, 2020
MylesBorins pushed a commit that referenced this pull request Nov 16, 2020
* use util.inspect for value presentation
* allow to optionally specify error reason

PR-URL: #34671
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. child_process Issues and PRs related to the child_process subsystem. errors Issues and PRs related to JavaScript errors originated in Node.js core. net Issues and PRs related to the net subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL