From d8d93442aa96504e9f401a7ead8bf6c6022904c9 Mon Sep 17 00:00:00 2001 From: msmichellegar Date: Tue, 6 Nov 2018 14:38:37 +0000 Subject: [PATCH] lib: adjust params from uvExceptionWithHostPort PR-URL: https://github.com/nodejs/node/pull/24159 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater --- lib/internal/errors.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/internal/errors.js b/lib/internal/errors.js index 044303be5a560d..5fec67d6c721af 100644 --- a/lib/internal/errors.js +++ b/lib/internal/errors.js @@ -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 = ''; @@ -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}`);