0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-05 13:49:10 +01:00

Fix incorrect server error content in RunnersList (#24118)

This commit is contained in:
yp05327 2023-04-14 12:34:10 +09:00 committed by GitHub
parent 5f4cd715ab
commit 5768bafeb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,13 +22,13 @@ import (
func RunnersList(ctx *context.Context, tplName base.TplName, opts actions_model.FindRunnerOptions) { func RunnersList(ctx *context.Context, tplName base.TplName, opts actions_model.FindRunnerOptions) {
count, err := actions_model.CountRunners(ctx, opts) count, err := actions_model.CountRunners(ctx, opts)
if err != nil { if err != nil {
ctx.ServerError("AdminRunners", err) ctx.ServerError("CountRunners", err)
return return
} }
runners, err := actions_model.FindRunners(ctx, opts) runners, err := actions_model.FindRunners(ctx, opts)
if err != nil { if err != nil {
ctx.ServerError("AdminRunners", err) ctx.ServerError("FindRunners", err)
return return
} }
if err := runners.LoadAttributes(ctx); err != nil { if err := runners.LoadAttributes(ctx); err != nil {