From 5cf5029530a0eadd26ee3cfa40543a894316cddc Mon Sep 17 00:00:00 2001 From: Thomas Nordquist Date: Sun, 13 Jan 2019 02:25:50 +0100 Subject: [PATCH] Try catch autoupdater errors --- electron.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/electron.js b/electron.js index 1b1ab31..eb64817 100644 --- a/electron.js +++ b/electron.js @@ -47,7 +47,11 @@ function createWindow () { // Some APIs can only be used after this event occurs. app.on('ready', () => { createWindow() - autoUpdater.checkForUpdatesAndNotify() + try { + autoUpdater.checkForUpdatesAndNotify() + } catch (error) { + console.error(error) + } }) // Quit when all windows are closed.