Skip to content

Commit

Permalink
lib: adjust params from uvExceptionWithHostPort
Browse files Browse the repository at this point in the history
PR-URL: #24159
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
  • Loading branch information
msmichellegar authored and BridgeAR committed Nov 13, 2018
1 parent 3665296 commit d8d9344
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/internal/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,9 @@ function uvException(ctx) {
* @param {string} syscall
* @param {string} address
* @param {number} [port]
* @param {string} [additional]
* @returns {Error}
*/
function uvExceptionWithHostPort(err, syscall, address, port, additional) {
function uvExceptionWithHostPort(err, syscall, address, port) {
const [ code, uvmsg ] = errmap.get(err);
const message = `${syscall} ${code}: ${uvmsg}`;
let details = '';
Expand All @@ -307,9 +306,6 @@ function uvExceptionWithHostPort(err, syscall, address, port, additional) {
} else if (address) {
details = ` ${address}`;
}
if (additional) {
details += ` - Local (${additional})`;
}

// eslint-disable-next-line no-restricted-syntax
const ex = new Error(`${message}${details}`);
Expand Down

0 comments on commit d8d9344

Please sign in to comment.