Added auto update error logging

This commit is contained in:
Geomitron
2021-04-12 21:54:20 -05:00
parent bee98b05d9
commit 24d8964860

View File

@@ -38,10 +38,11 @@ export class SettingsComponent implements OnInit, AfterViewInit {
} }
this.ref.detectChanges() this.ref.detectChanges()
}) })
this.electronService.receiveIPC('update-error', () => { this.electronService.receiveIPC('update-error', (err: Error) => {
console.log(err)
this.updateAvailable = null this.updateAvailable = null
this.updateRetrying = false this.updateRetrying = false
this.retryUpdateText = 'Failed to check for update' this.retryUpdateText = `Failed to check for update: ${err.message}`
this.ref.detectChanges() this.ref.detectChanges()
}) })
this.electronService.invoke('get-current-version', undefined).then(version => { this.electronService.invoke('get-current-version', undefined).then(version => {