From a43a7cf5b5683f2ba512beff8d8ecafff93be136 Mon Sep 17 00:00:00 2001 From: Joe Hanley Date: Wed, 29 Nov 2023 09:07:28 -0800 Subject: [PATCH 1/3] Better error message when failing to fetch MOTD --- src/fetchMOTD.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fetchMOTD.ts b/src/fetchMOTD.ts index 6332c2b1e04..23e5a6b9a6a 100644 --- a/src/fetchMOTD.ts +++ b/src/fetchMOTD.ts @@ -51,7 +51,7 @@ export function fetchMOTD(): void { configstore.set("motd.fetched", Date.now()); }) .catch((err) => { - utils.logWarning("Unable to fetch the CLI MOTD and remote config."); + utils.logWarning("Unable to fetch the CLI MOTD and remote config. This is not a fatal error, but may indicate an issue with your proxy set up."); logger.debug(`Failed to fetch MOTD ${err}`); }); } From 2e7f6e20b9dc1457964c3b98ff33e3bd06690dc4 Mon Sep 17 00:00:00 2001 From: joehan Date: Wed, 29 Nov 2023 09:22:19 -0800 Subject: [PATCH 2/3] Update src/fetchMOTD.ts Co-authored-by: Bryan Kendall --- src/fetchMOTD.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fetchMOTD.ts b/src/fetchMOTD.ts index 23e5a6b9a6a..a6a4bebff65 100644 --- a/src/fetchMOTD.ts +++ b/src/fetchMOTD.ts @@ -51,7 +51,7 @@ export function fetchMOTD(): void { configstore.set("motd.fetched", Date.now()); }) .catch((err) => { - utils.logWarning("Unable to fetch the CLI MOTD and remote config. This is not a fatal error, but may indicate an issue with your proxy set up."); + utils.logWarning("Unable to fetch the CLI MOTD and remote config. This is not a fatal error, but may indicate an issue with your network connection."); logger.debug(`Failed to fetch MOTD ${err}`); }); } From 19d795e8a840503d2b8ab693bc5d7a0764a834cb Mon Sep 17 00:00:00 2001 From: Joe Hanley Date: Wed, 29 Nov 2023 09:23:33 -0800 Subject: [PATCH 3/3] format --- src/fetchMOTD.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fetchMOTD.ts b/src/fetchMOTD.ts index a6a4bebff65..567e0cb08c0 100644 --- a/src/fetchMOTD.ts +++ b/src/fetchMOTD.ts @@ -51,7 +51,9 @@ export function fetchMOTD(): void { configstore.set("motd.fetched", Date.now()); }) .catch((err) => { - utils.logWarning("Unable to fetch the CLI MOTD and remote config. This is not a fatal error, but may indicate an issue with your network connection."); + utils.logWarning( + "Unable to fetch the CLI MOTD and remote config. This is not a fatal error, but may indicate an issue with your network connection." + ); logger.debug(`Failed to fetch MOTD ${err}`); }); }