Skip to content

Commit 7527632

Browse files
msmichellegarcodebytere
authored andcommitted
lib: adjust params from uvExceptionWithHostPort
PR-URL: #24159 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent aba7b47 commit 7527632

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
@@ -295,10 +295,9 @@ function uvException(ctx) {
295295
* @param {string} syscall
296296
* @param {string} address
297297
* @param {number} [port]
298-
* @param {string} [additional]
299298
* @returns {Error}
300299
*/
301-
function uvExceptionWithHostPort(err, syscall, address, port, additional) {
300+
function uvExceptionWithHostPort(err, syscall, address, port) {
302301
const [ code, uvmsg ] = errmap.get(err);
303302
const message = `${syscall} ${code}: ${uvmsg}`;
304303
let details = '';
@@ -308,9 +307,6 @@ function uvExceptionWithHostPort(err, syscall, address, port, additional) {
308307
} else if (address) {
309308
details = ` ${address}`;
310309
}
311-
if (additional) {
312-
details += ` - Local (${additional})`;
313-
}
314310

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

0 commit comments

Comments
 (0)