Skip to content

Commit 5768baf

Browse files
authored
Fix incorrect server error content in RunnersList (#24118)
1 parent 5f4cd71 commit 5768baf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/web/shared/actions/runners.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ import (
2222
func RunnersList(ctx *context.Context, tplName base.TplName, opts actions_model.FindRunnerOptions) {
2323
count, err := actions_model.CountRunners(ctx, opts)
2424
if err != nil {
25-
ctx.ServerError("AdminRunners", err)
25+
ctx.ServerError("CountRunners", err)
2626
return
2727
}
2828

2929
runners, err := actions_model.FindRunners(ctx, opts)
3030
if err != nil {
31-
ctx.ServerError("AdminRunners", err)
31+
ctx.ServerError("FindRunners", err)
3232
return
3333
}
3434
if err := runners.LoadAttributes(ctx); err != nil {

0 commit comments

Comments
 (0)