Skip to content

Commit 0213562

Browse files
authored
Merge pull request #3630 from ActiveState/mitchell/dx-3205
Return a commit even if there's a polling error.
2 parents 4dc43db + 2d271e1 commit 0213562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/platform/model/buildplanner/commit.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func (b *BuildPlanner) StageCommit(params StageCommitParams) (*Commit, error) {
7272
if resp.Build.Status == raw.Planning {
7373
resp.Build, err = b.pollBuildPlanned(resp.CommitID.String(), params.Owner, params.Project, nil)
7474
if err != nil {
75-
return nil, errs.Wrap(err, "failed to poll build plan")
75+
return &Commit{resp, nil, nil}, errs.Wrap(err, "failed to poll build plan")
7676
}
7777
}
7878

0 commit comments

Comments
 (0)