2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 17:17:13 +08:00

feat: add task check in update

This commit is contained in:
耗子
2023-07-22 03:15:48 +08:00
parent fb383f9f90
commit 1689ef4e4a
2 changed files with 10 additions and 1 deletions

View File

@@ -166,7 +166,8 @@ func (c *InfoController) Update(ctx http.Context) {
proxy := ctx.Request().InputBool("proxy")
err := tools.UpdatePanel(proxy)
if err != nil {
Error(ctx, http.StatusInternalServerError, "更新失败")
facades.Log().Error("[面板][InfoController] 更新面板失败 ", err.Error())
Error(ctx, http.StatusInternalServerError, "更新失败: "+err.Error())
return
}