aboutsummaryrefslogtreecommitdiffstats
path: root/services/actions
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2025-02-18 04:41:03 +0800
committerGitHub <noreply@github.com>2025-02-17 12:41:03 -0800
commit15e020eec85d7ec2ef0f1e9ad10a1ffde2ca0f34 (patch)
tree57625d44a60e5c01bcbf712695fa576aa79683f4 /services/actions
parent7df09e31fa2700454beecbaf3c0721e13d6086f4 (diff)
downloadgitea-15e020eec85d7ec2ef0f1e9ad10a1ffde2ca0f34.tar.gz
gitea-15e020eec85d7ec2ef0f1e9ad10a1ffde2ca0f34.zip
Refactor error system (#33626)
Diffstat (limited to 'services/actions')
-rw-r--r--services/actions/workflow.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/actions/workflow.go b/services/actions/workflow.go
index ab320aa453..9aecad171b 100644
--- a/services/actions/workflow.go
+++ b/services/actions/workflow.go
@@ -104,7 +104,7 @@ func EnableOrDisableWorkflow(ctx *context.APIContext, workflowID string, isEnabl
func ListActionWorkflows(ctx *context.APIContext) ([]*api.ActionWorkflow, error) {
defaultBranchCommit, err := ctx.Repo.GitRepo.GetBranchCommit(ctx.Repo.Repository.DefaultBranch)
if err != nil {
- ctx.APIError(http.StatusInternalServerError, err.Error())
+ ctx.APIErrorInternal(err)
return nil, err
}