Skip to content

Commit

Permalink
Merge pull request #1151 from Dyalog/hostname_on_error
Browse files Browse the repository at this point in the history
Report hostname on error, fix #1147
  • Loading branch information
e9gille authored Sep 19, 2023
2 parents 1953e8e + 12e6a71 commit f06dabf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cn.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
if (!(e instanceof Error)) {
$.err(...x);
} else if (e.code === 'ENOTFOUND') {
$.err(`The host "${e.host}" could not be found.`, 'Host not found');
$.err(`The host "${e.hostname}" could not be found.`, 'Host not found');
} else if (e.code !== 'ETIMEDOUT') $.err(e.message, e.name);
};
const passwdPrompt = (text, title) => {
Expand Down

0 comments on commit f06dabf

Please sign in to comment.