Skip to content

Commit a37440c

Browse files
committed
fix: some downstream dependencies on the upgrader's output fields
1 parent dbb002a commit a37440c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

component/updater/update_core.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ func (u *CoreUpdater) Update(currentExePath string) (err error) {
9292
log.Infoln("current version %s, latest version %s", C.Version, latestVersion)
9393

9494
if latestVersion == C.Version {
95-
return fmt.Errorf("update error: %s is the latest version", C.Version)
95+
// don't change this output, some downstream dependencies on the upgrader's output fields
96+
return fmt.Errorf("update error: already using latest version %s", C.Version)
9697
}
9798

9899
defer func() {

0 commit comments

Comments
 (0)