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 codebytere committed Jan 12, 2019
1 parent aba7b47 commit 7527632
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 @@ -295,10 +295,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 @@ -308,9 +307,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 7527632

Please sign in to comment.