From 12e6a713e6ff7ba0e59a07798a05b633b951b6e1 Mon Sep 17 00:00:00 2001 From: Gilgamesh Athoraya Date: Tue, 19 Sep 2023 19:43:08 +0200 Subject: [PATCH] Report hostname on error --- src/cn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cn.js b/src/cn.js index 059b6ad4..a0664c5b 100644 --- a/src/cn.js +++ b/src/cn.js @@ -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) => {