chore: skip restart when update error
This commit is contained in:
parent
583a568d57
commit
dacad9b9cc
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue