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

dns: update lookupService() first arg name by cjihrig · Pull Request #29040 · nodejs/node · GitHub

/ node Public

dns: update lookupService() first arg name - #29040

Closed
cjihrig wants to merge 1 commit into
nodejs:masterfrom
cjihrig:dns-err
Closed

dns: update lookupService() first arg name#29040
cjihrig wants to merge 1 commit into
nodejs:masterfrom
cjihrig:dns-err

Conversation

cjihrig commented Aug 8, 2019

Copy link
Copy Markdown
Contributor

The first argument to lookupService() should be an IP address, and is named "address" in the documentation. This commit updates the code to match the documentation and provide less confusing errors.

Fixes: #29039

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

nodejs-github-bot added the dns Issues and PRs related to the dns subsystem. label Aug 8, 2019

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

The code variable names should always match the docs because they are exposed in stack traces. I wish there were a trivial way to lint for this in the docs.

Comment thread test/parallel/test-dns.js Outdated
The first argument to lookupService() should be an IP address,
and is named "address" in the documentation. This commit updates
the code to match the documentation and provide less confusing
errors.

Copy link
Copy Markdown
Collaborator

Trott pushed a commit to Trott/io.js that referenced this pull request Aug 11, 2019
The first argument to lookupService() should be an IP address,
and is named "address" in the documentation. This commit updates
the code to match the documentation and provide less confusing
errors.

PR-URL: nodejs#29040
Fixes: nodejs#29039
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>

Trott commented Aug 11, 2019

Copy link
Copy Markdown
Member

Landed in df936c5

Trott closed this Aug 11, 2019
cjihrig deleted the dns-err branch August 11, 2019 12:56
targos pushed a commit that referenced this pull request Aug 19, 2019
The first argument to lookupService() should be an IP address,
and is named "address" in the documentation. This commit updates
the code to match the documentation and provide less confusing
errors.

PR-URL: #29040
Fixes: #29039
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
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

dns Issues and PRs related to the dns subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error message could be improved for dns.lookupService

8 participants


Back | FazBrowse Home | New Git URL