mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Fix incorrect server error content in RunnersList (#24118)
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user