aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-04-14 12:34:10 +0900
committerGitHub <noreply@github.com>2023-04-14 11:34:10 +0800
commit5768bafeb28e4e4212ae0e2abc7f22c9c8b7c653 (patch)
tree512638f09aa366abd904a725aa846694b6230ee9
parent5f4cd715abb50aea4d82416cd9a78dff7d670841 (diff)
downloadgitea-5768bafeb28e4e4212ae0e2abc7f22c9c8b7c653.tar.gz
gitea-5768bafeb28e4e4212ae0e2abc7f22c9c8b7c653.zip
Fix incorrect server error content in RunnersList (#24118)
-rw-r--r--routers/web/shared/actions/runners.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/shared/actions/runners.go b/routers/web/shared/actions/runners.go
index f63d37f165..2c3614cbbc 100644
--- a/routers/web/shared/actions/runners.go
+++ b/routers/web/shared/actions/runners.go
@@ -22,13 +22,13 @@ import (
func RunnersList(ctx *context.Context, tplName base.TplName, opts actions_model.FindRunnerOptions) {
count, err := actions_model.CountRunners(ctx, opts)
if err != nil {
- ctx.ServerError("AdminRunners", err)
+ ctx.ServerError("CountRunners", err)
return
}
runners, err := actions_model.FindRunners(ctx, opts)
if err != nil {
- ctx.ServerError("AdminRunners", err)
+ ctx.ServerError("FindRunners", err)
return
}
if err := runners.LoadAttributes(ctx); err != nil {