mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Refactor error system (#33610)
This commit is contained in:
		| @@ -76,7 +76,7 @@ func PostCronTask(ctx *context.APIContext) { | ||||
| 	//     "$ref": "#/responses/notFound" | ||||
| 	task := cron.GetTask(ctx.PathParam("task")) | ||||
| 	if task == nil { | ||||
| 		ctx.NotFound() | ||||
| 		ctx.APIErrorNotFound() | ||||
| 		return | ||||
| 	} | ||||
| 	task.Run() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user