diff options
Diffstat (limited to 'src/electron')
-rw-r--r-- | src/electron/ipc-api/autoUpdate.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/electron/ipc-api/autoUpdate.ts b/src/electron/ipc-api/autoUpdate.ts index e6b805edc..33af57efc 100644 --- a/src/electron/ipc-api/autoUpdate.ts +++ b/src/electron/ipc-api/autoUpdate.ts | |||
@@ -39,8 +39,7 @@ export default (params: { mainWindow: BrowserWindow; settings: any }) => { | |||
39 | }, 20); | 39 | }, 20); |
40 | } | 40 | } |
41 | } catch (error) { | 41 | } catch (error) { |
42 | console.error(error); | 42 | event.sender.send('autoUpdate', { error }); |
43 | event.sender.send('autoUpdate', { error: true }); | ||
44 | } | 43 | } |
45 | } | 44 | } |
46 | }); | 45 | }); |
@@ -74,9 +73,9 @@ export default (params: { mainWindow: BrowserWindow; settings: any }) => { | |||
74 | params.mainWindow.webContents.send('autoUpdate', { downloaded: true }); | 73 | params.mainWindow.webContents.send('autoUpdate', { downloaded: true }); |
75 | }); | 74 | }); |
76 | 75 | ||
77 | autoUpdater.on('error', () => { | 76 | autoUpdater.on('error', error => { |
78 | debug('update-error'); | 77 | debug('update-error'); |
79 | params.mainWindow.webContents.send('autoUpdate', { error: true }); | 78 | params.mainWindow.webContents.send('autoUpdate', { error }); |
80 | }); | 79 | }); |
81 | } | 80 | } |
82 | }; | 81 | }; |