Skip to content

Commit

Permalink
chore: catch updater errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdvlpr committed Nov 10, 2024
1 parent 99de6bc commit f993594
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src-electron/main/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import { join } from 'path';
import { errorCatcher, getUserDataPath } from './../utils';

export async function initUpdater() {
autoUpdater.on('error', (error, message) => {
errorCatcher(error, { contexts: { updater: { message } } });
});

const disabled = await exists(
join(getUserDataPath(), 'Global Preferences', 'disable-updates'),
);
Expand Down

0 comments on commit f993594

Please sign in to comment.