GODT-2122: Handle check for updates failure

This commit is contained in:
James Houlahan
2022-11-19 13:18:43 +01:00
parent 1517dd81e6
commit 0ce0e4765b
3 changed files with 22 additions and 4 deletions

View File

@ -365,7 +365,7 @@ func (bridge *Bridge) init(tlsReporter TLSReporter) error {
version, err := bridge.updater.GetVersionInfo(ctx, bridge.api, bridge.vault.GetUpdateChannel())
if err != nil {
logrus.WithError(err).Error("Failed to check for updates")
bridge.publish(events.UpdateCheckFailed{Error: err})
} else {
bridge.handleUpdate(version)
}