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}`);