10000 fix(api): postWorkflowAsCodeHandler return error (#4434) · ovh/cds@39c55fa · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 39c55fa

Browse files
fsaminyesnault
authored andcommitted
fix(api): postWorkflowAsCodeHandler return error (#4434)
1 parent 905887a commit 39c55fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/api/workflow_ascode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (api *API) postWorkflowAsCodeHandler() service.Handler {
132132
// Export workflow + push + create pull request
133133
ope, err := workflow.UpdateAsCode(ctx, api.mustDB(), api.Cache, proj, wf, project.EncryptWithBuiltinKey, u)
134134
if err != nil {
135-
return sdk.WrapError(errW, "unable to migrate workflow as code")
135+
return sdk.WrapError(err, "unable to migrate workflow as code")
136136
}
137137

138138
sdk.GoRoutine(context.Background(), fmt.Sprintf("UpdateWorkflowAsCodeResult-%s", ope.UUID), func(ctx context.Context) {

0 commit comments

Comments
 (0)
0