diff options
Diffstat (limited to 'services/actions/workflow.go')
-rw-r--r-- | services/actions/workflow.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/actions/workflow.go b/services/actions/workflow.go index 4470b60c64..ab320aa453 100644 --- a/services/actions/workflow.go +++ b/services/actions/workflow.go @@ -104,13 +104,13 @@ 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.Error(http.StatusInternalServerError, "WorkflowDefaultBranchError", err.Error()) + ctx.APIError(http.StatusInternalServerError, err.Error()) return nil, err } entries, err := actions.ListWorkflows(defaultBranchCommit) if err != nil { - ctx.Error(http.StatusNotFound, "WorkflowListNotFound", err.Error()) + ctx.APIError(http.StatusNotFound, err.Error()) return nil, err } |