mirror of
https://github.com/go-gitea/gitea
synced 2025-07-07 11:07:20 +00: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