diff options
Diffstat (limited to 'services/actions/workflow.go')
-rw-r--r-- | services/actions/workflow.go | 2 |
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 } |