aboutsummaryrefslogtreecommitdiff
path: root/src/utils/updater.ts
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-10-02 02:46:41 +0200
committerVendicated <vendicated@riseup.net>2022-10-02 02:46:41 +0200
commitf31fd75efcf6971048c0111860be5c25de925075 (patch)
treef63e867d64743ffa816e56536163045dfd87ee3e /src/utils/updater.ts
parent57d586fab73814a3778303c7a78c55c785e62af0 (diff)
downloadVencord-f31fd75efcf6971048c0111860be5c25de925075.tar.gz
Vencord-f31fd75efcf6971048c0111860be5c25de925075.tar.bz2
Vencord-f31fd75efcf6971048c0111860be5c25de925075.zip
UpdaterPage: Do not error if update check failed
Diffstat (limited to 'src/utils/updater.ts')
-rw-r--r--src/utils/updater.ts3
1 files changed, 3 insertions, 0 deletions
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<T>(p: Promise<IpcRes<T>>) {
const res = await p;
if (res.ok) return res.value;
+
+ updateError = res.error;
throw res.error;
}