Refactor error system (#33610)

This commit is contained in:
wxiaoguang authored and GitHub committed 2025-02-16 22:13:17 -08:00
1 parent 69de5a65c2
commit f35850f48e
184 files changed
+2100 -2106

No files matched your search

+1 -1
View File
@@ -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
}
}