From 67a73dd05f21b6bd21e2b2b7a8299864c31659fb Mon Sep 17 00:00:00 2001 From: Giteabot Date: Fri, 14 Apr 2023 00:52:21 -0400 Subject: [PATCH] Fix incorrect server error content in RunnersList (#24118) (#24121) Backport #24118 by @yp05327 Co-authored-by: yp05327 <576951401@qq.com> --- routers/web/shared/actions/runners.go | 4 ++-- 1 file 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 {