Skip to content

Commit ce9e282

Browse files
committed
llbsolver: avoid nil releaser on error
Signed-off-by: Tonis Tiigi <[email protected]>
1 parent 5a91bd3 commit ce9e282

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

solver/llbsolver/solver.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,10 @@ func (s *Solver) recordBuildHistory(ctx context.Context, id string, req frontend
385385
if err1 != nil {
386386
// don't replace the build error with this import error
387387
bklog.G(ctx).Errorf("failed to import error to build record: %+v", err1)
388+
} else {
389+
releasers = append(releasers, release)
388390
}
389391
rec.ExternalError = desc
390-
releasers = append(releasers, release)
391392
rec.Error = status
392393
}
393394

0 commit comments

Comments
 (0)