Skip to content

Commit

Permalink
llbsolver: avoid nil releaser on error
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <[email protected]>
(cherry picked from commit ce9e282)
  • Loading branch information
tonistiigi authored and crazy-max committed Jul 24, 2024
1 parent e83d79a commit 4882c33
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion solver/llbsolver/solver.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,9 +384,10 @@ func (s *Solver) recordBuildHistory(ctx context.Context, id string, req frontend
if err1 != nil {
// don't replace the build error with this import error
bklog.G(ctx).Errorf("failed to import error to build record: %+v", err1)
} else {
releasers = append(releasers, release)
}
rec.ExternalError = desc
releasers = append(releasers, release)
rec.Error = status
}

Expand Down

0 comments on commit 4882c33

Please sign in to comment.