Solve missing TODOs

This commit is contained in:
Michal Horejsek
2021-01-18 08:20:53 +01:00
parent debf015dd0
commit 32db6b8d44
4 changed files with 19 additions and 4 deletions

View File

@ -93,7 +93,12 @@ func (f *frontendCLI) notifyLogout(address string) {
}
func (f *frontendCLI) notifyNeedUpgrade() {
f.Println("TODO")
version, err := f.updater.Check()
if err != nil {
log.WithError(err).Error("Failed to notify need upgrade")
return
}
f.Println("Please download and install the newest version of application from", version.LandingPage)
}
func (f *frontendCLI) notifyCredentialsError() { // nolint[unused]