chore: skip restart when update error

This commit is contained in:
Larvan2 2023-03-27 00:49:32 +08:00
parent 431dcfa914
commit 545cbeeec0

View file

@ -27,6 +27,7 @@ func upgrade(w http.ResponseWriter, r *http.Request) {
err := updater.Update() err := updater.Update()
if err != nil { if err != nil {
log.Errorln("err:%s", err) log.Errorln("err:%s", err)
return
} }
execPath, err := os.Executable() execPath, err := os.Executable()