1
0
mirror of https://github.com/MetaCubeX/mihomo.git synced 2025-09-20 04:25:59 +08:00

fix: some downstream dependencies on the upgrader's output fields

This commit is contained in:
wwqgtxx
2025-07-25 17:48:24 +08:00
parent dbb002a5ba
commit a37440c81b

View File

@ -92,7 +92,8 @@ func (u *CoreUpdater) Update(currentExePath string) (err error) {
log.Infoln("current version %s, latest version %s", C.Version, latestVersion) log.Infoln("current version %s, latest version %s", C.Version, latestVersion)
if latestVersion == C.Version { if latestVersion == C.Version {
return fmt.Errorf("update error: %s is the latest version", C.Version) // don't change this output, some downstream dependencies on the upgrader's output fields
return fmt.Errorf("update error: already using latest version %s", C.Version)
} }
defer func() { defer func() {