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:
parent
bcb1b6a13b
commit
39fa0424a6
@ -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))
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user