From 545cbeeec067cb4f3d201293570b9f8cf7285878 Mon Sep 17 00:00:00 2001 From: Larvan2 <78135608+Larvan2@users.noreply.github.com> Date: Mon, 27 Mar 2023 00:49:32 +0800 Subject: [PATCH] chore: skip restart when update error --- hub/route/upgrade.go | 1 + 1 file changed, 1 insertion(+) diff --git a/hub/route/upgrade.go b/hub/route/upgrade.go index a4a8e683..b60d60d4 100644 --- a/hub/route/upgrade.go +++ b/hub/route/upgrade.go @@ -27,6 +27,7 @@ func upgrade(w http.ResponseWriter, r *http.Request) { err := updater.Update() if err != nil { log.Errorln("err:%s", err) + return } execPath, err := os.Executable()