diff options
| author | Vendicated <vendicated@riseup.net> | 2022-10-02 02:46:41 +0200 |
|---|---|---|
| committer | Vendicated <vendicated@riseup.net> | 2022-10-02 02:46:41 +0200 |
| commit | f31fd75efcf6971048c0111860be5c25de925075 (patch) | |
| tree | f63e867d64743ffa816e56536163045dfd87ee3e /src/utils | |
| parent | 57d586fab73814a3778303c7a78c55c785e62af0 (diff) | |
| download | Vencord-f31fd75efcf6971048c0111860be5c25de925075.tar.gz Vencord-f31fd75efcf6971048c0111860be5c25de925075.tar.bz2 Vencord-f31fd75efcf6971048c0111860be5c25de925075.zip | |
UpdaterPage: Do not error if update check failed
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/updater.ts | 3 |
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; } |
