From f31fd75efcf6971048c0111860be5c25de925075 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sun, 2 Oct 2022 02:46:41 +0200 Subject: UpdaterPage: Do not error if update check failed --- src/utils/updater.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/utils') diff --git a/src/utils/updater.ts b/src/utils/updater.ts index b3fa812..e66a149 100644 --- a/src/utils/updater.ts +++ b/src/utils/updater.ts @@ -4,12 +4,15 @@ import { IpcRes } from './types'; export const UpdateLogger = new Logger("Updater", "white"); export let isOutdated = false; +export let updateError: any; export let changes: Record<"hash" | "author" | "message", string>[]; async function Unwrap(p: Promise>) { const res = await p; if (res.ok) return res.value; + + updateError = res.error; throw res.error; } -- cgit