diff options
Diffstat (limited to 'lib/dns.js')
-rw-r--r-- | lib/dns.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dns.js b/lib/dns.js index e536f1b4f9..581310b132 100644 --- a/lib/dns.js +++ b/lib/dns.js @@ -216,7 +216,7 @@ function lookupService(host, port, callback) { throw new errors.TypeError('ERR_INVALID_OPT_VALUE', 'host', host); if (!isLegalPort(port)) - throw new errors.RangeError('ERR_SOCKET_BAD_PORT'); + throw new errors.RangeError('ERR_SOCKET_BAD_PORT', port); if (typeof callback !== 'function') throw new errors.TypeError('ERR_INVALID_CALLBACK'); |