mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2025-09-19 20:15:59 +08:00
fix: some downstream dependencies on the upgrader's output fields
This commit is contained in:
@ -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() {
|
||||||
|
Reference in New Issue
Block a user