From 77fbd324c90fce76b538e6b8f4d1f943370e7e5a Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Wed, 30 Oct 2024 14:24:37 -0700 Subject: [PATCH] Check err.toString instead of err.message (#1171) --- emain/updater.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emain/updater.ts b/emain/updater.ts index 9bb100739..e10faf162 100644 --- a/emain/updater.ts +++ b/emain/updater.ts @@ -66,7 +66,7 @@ export class Updater { autoUpdater.on("error", (err) => { console.log("updater error"); console.log(err); - if (!err.message.includes("net::ERR_INTERNET_DISCONNECTED")) this.status = "error"; + if (!err.toString()?.includes("net::ERR_INTERNET_DISCONNECTED")) this.status = "error"; }); autoUpdater.on("checking-for-update", () => {