aboutsummaryrefslogtreecommitdiff
path: root/src/utils/updater.ts
diff options
context:
space:
mode:
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;
}