Skip to content

Commit f66b65e

Browse files
joehanbkendall
andauthored
Better error message when failing to fetch MOTD (#6556)
* Better error message when failing to fetch MOTD * Update src/fetchMOTD.ts Co-authored-by: Bryan Kendall <[email protected]> * format --------- Co-authored-by: Bryan Kendall <[email protected]>
1 parent 8784f9f commit f66b65e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/fetchMOTD.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ export function fetchMOTD(): void {
5151
configstore.set("motd.fetched", Date.now());
5252
})
5353
.catch((err) => {
54-
utils.logWarning("Unable to fetch the CLI MOTD and remote config.");
54+
utils.logWarning(
55+
"Unable to fetch the CLI MOTD and remote config. This is not a fatal error, but may indicate an issue with your network connection."
56+
);
5557
logger.debug(`Failed to fetch MOTD ${err}`);
5658
});
5759
}

0 commit comments

Comments
 (0)