diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2025-02-17 14:13:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-02-16 22:13:17 -0800 |
commit | f35850f48ed0bd40ec288e2547ac687a7bf1746c (patch) | |
tree | 27191daf6a2ca9e216710090bba303e26dafb157 /routers/web/devtest | |
parent | 69de5a65c25b08b501ed1e8123fcdad43f382213 (diff) | |
download | gitea-f35850f48ed0bd40ec288e2547ac687a7bf1746c.tar.gz gitea-f35850f48ed0bd40ec288e2547ac687a7bf1746c.zip |
Refactor error system (#33610)
Diffstat (limited to 'routers/web/devtest')
-rw-r--r-- | routers/web/devtest/mock_actions.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/devtest/mock_actions.go b/routers/web/devtest/mock_actions.go index f29b8e4046..e6539bb31f 100644 --- a/routers/web/devtest/mock_actions.go +++ b/routers/web/devtest/mock_actions.go @@ -118,7 +118,7 @@ func MockActionsRunsJobs(ctx *context.Context) { } if doErrorResponse { if mathRand.Float64() > 0.5 { - ctx.Error(http.StatusInternalServerError, "devtest mock error response") + ctx.HTTPError(http.StatusInternalServerError, "devtest mock error response") return } } |