Skip to content

Commit 3a60c3d

Browse files
committed
use json error message
1 parent 866656b commit 3a60c3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/actions/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,7 @@ func Delete(ctx *context_module.Context) {
584584
run, err := actions_model.GetRunByIndex(ctx, repoID, runIndex)
585585
if err != nil {
586586
if errors.Is(err, util.ErrNotExist) {
587-
ctx.NotFound(nil)
587+
ctx.JSONError(ctx.Tr("error.not_found"))
588588
return
589589
}
590590
ctx.ServerError("GetRunByIndex", err)

0 commit comments

Comments
 (0)