1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-27 18:55:58 +03:00

handle auto-updater errors

This commit is contained in:
Eugene Pankov 2021-01-09 18:22:58 +01:00
parent bcb1b6a13b
commit 39fa0424a6
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -35,6 +35,10 @@ export class UpdaterService {
this.logger.info('No updates')
})
electron.autoUpdater.once('error', err => {
this.logger.error(err)
})
this.downloaded = new Promise<boolean>(resolve => {
electron.autoUpdater.once('update-downloaded', () => resolve(true))
})