Fix incorrect server error content in RunnersList (#24118) (#24121)

Backport #24118 by @yp05327

Co-authored-by: yp05327 <576951401@qq.com>
This commit is contained in:
Giteabot 2023-04-14 00:52:21 -04:00 committed by Loïc Dachary
parent 73894eda79
commit bb5eab5ed6
No known key found for this signature in database
GPG key ID: 992D23B392F9E4F2

View file

@ -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 {