Skip to content

Commit d8d9344

Browse files
msmichellegarBridgeAR
authored andcommitted
lib: adjust params from uvExceptionWithHostPort
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>
1 parent 3665296 commit d8d9344

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/internal/errors.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -294,10 +294,9 @@ function uvException(ctx) {
294294
* @param {string} syscall
295295
* @param {string} address
296296
* @param {number} [port]
297-
* @param {string} [additional]
298297
* @returns {Error}
299298
*/
300-
function uvExceptionWithHostPort(err, syscall, address, port, additional) {
299+
function uvExceptionWithHostPort(err, syscall, address, port) {
301300
const [ code, uvmsg ] = errmap.get(err);
302301
const message = `${syscall} ${code}: ${uvmsg}`;
303302
let details = '';
@@ -307,9 +306,6 @@ function uvExceptionWithHostPort(err, syscall, address, port, additional) {
307306
} else if (address) {
308307
details = ` ${address}`;
309308
}
310-
if (additional) {
311-
details += ` - Local (${additional})`;
312-
}
313309

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

0 commit comments

Comments
 (0)