Skip to content

Commit c5e6c47

Browse files
committed
Fix wrapped error when stale builder lookup fails
1 parent 4654ffa commit c5e6c47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/builds/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ func (m *manager) deleteLeftoverDiskRootVolume(ctx context.Context, buildID, vol
835835
builderName := fmt.Sprintf("builder-%s", buildID)
836836
inst, getErr := m.instanceManager.GetInstance(ctx, builderName)
837837
if getErr != nil {
838-
return fmt.Errorf("leftover buildkit root volume still attached and stale builder %q not found: %w", builderName, err)
838+
return fmt.Errorf("leftover buildkit root volume still attached and stale builder %q not found: %w", builderName, getErr)
839839
}
840840
if delErr := m.instanceManager.DeleteInstance(ctx, inst.Id); delErr != nil {
841841
return fmt.Errorf("delete stale builder %s holding leftover buildkit root volume: %w", inst.Id, delErr)

0 commit comments

Comments
 (0)