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

@ -111,3 +111,14 @@ type UpdateForced struct {
func (event UpdateForced) String() string {
return "UpdateForced"
}
// UpdateCheckFailed is published when the update check fails.
type UpdateCheckFailed struct {
eventBase
Error error
}
func (event UpdateCheckFailed) String() string {
return fmt.Sprintf("UpdateCheckFailed: Error: %s", event.Error)
}