diff --git a/routers/api/v1/repo/action.go b/routers/api/v1/repo/action.go index 3e25327cc..72232d66e 100644 --- a/routers/api/v1/repo/action.go +++ b/routers/api/v1/repo/action.go @@ -621,10 +621,10 @@ func DispatchWorkflow(ctx *context.APIContext) { name := ctx.Params("workflowname") if len(opt.Ref) == 0 { - ctx.Error(http.StatusBadRequest, "ref", nil) + ctx.Error(http.StatusBadRequest, "ref", "ref is empty") return } else if len(name) == 0 { - ctx.Error(http.StatusBadRequest, "workflowname", nil) + ctx.Error(http.StatusBadRequest, "workflowname", "workflow name is empty") return }