Skip to content

Commit

Permalink
Fix incorrect server error content in RunnersList (go-gitea#24118)
Browse files Browse the repository at this point in the history
  • Loading branch information
yp05327 authored Apr 14, 2023
1 parent 5f4cd71 commit 5768baf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routers/web/shared/actions/runners.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5768baf

Please sign in to comment.