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

stream: improve the error message of `ERR_INVALID_ARG_TYPE` by starkwang · Pull Request #17145 · nodejs/node · GitHub

/ node Public

stream: improve the error message of ERR_INVALID_ARG_TYPE - #17145

Closed
starkwang wants to merge 1 commit into
nodejs:masterfrom
starkwang:improve-stream-err-msg
Closed

stream: improve the error message of ERR_INVALID_ARG_TYPE#17145
starkwang wants to merge 1 commit into
nodejs:masterfrom
starkwang:improve-stream-err-msg

Conversation

starkwang commented Nov 20, 2017
edited
Loading

Copy link
Copy Markdown
Contributor

The expected argument of ERR_INVALID_ARG_TYPE can be an array, which is better than a single string.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

stream

The `expected` argument of `ERR_INVALID_ARG_TYPE` can be an
array, which is better than a single string.
nodejs-github-bot added the stream Issues and PRs related to the stream subsystem. label Nov 20, 2017

Copy link
Copy Markdown
Member

joyeecheung added the fast-track PRs that do not need to wait for 48 hours to land. label Nov 21, 2017

joyeecheung 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

This does not need 48-hours. LGTM once CI is green

jasnell pushed a commit that referenced this pull request Nov 22, 2017
The `expected` argument of `ERR_INVALID_ARG_TYPE` can be an
array, which is better than a single string.

PR-URL: #17145
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>

jasnell commented Nov 22, 2017

Copy link
Copy Markdown
Member

Landed in 0a948b9

jasnell closed this Nov 22, 2017
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
The `expected` argument of `ERR_INVALID_ARG_TYPE` can be an
array, which is better than a single string.

PR-URL: #17145
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
MylesBorins pushed a commit that referenced this pull request Dec 12, 2017
The `expected` argument of `ERR_INVALID_ARG_TYPE` can be an
array, which is better than a single string.

PR-URL: #17145
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
MylesBorins mentioned this pull request Dec 12, 2017

Copy link
Copy Markdown
Contributor

Should this have been semver-major? I thought we were not landing error changes as semver-patch until the entire system was updated

My apologies if I am mistaken.

Please adjust lts labels as appropriate

joyeecheung commented Dec 20, 2017
edited
Loading

Copy link
Copy Markdown
Member

@MylesBorins The error message prior to the changed one was Invalid non-string/buffer chunk, then it's migrated in v9.x to something like The "chunk" argument must be of type string/Buffer/Uint8Array. Received type null, this PR just changes that again to The "chunk" argument must be one of type string, Buffer, or Uint8Array. Received type null. The error code is untouched so I think it's reasonable to backport this to 9.x.

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

fast-track PRs that do not need to wait for 48 hours to land. stream Issues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants


Back | FazBrowse Home | New Git URL