cleanup buildkit errors everywhere

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi
2021-01-20 18:05:40 -08:00
parent 1d64422320
commit 0381c58d80
3 changed files with 31 additions and 22 deletions

View File

@@ -47,7 +47,7 @@ func (s Solver) Solve(ctx context.Context, st llb.State) (bkgw.Reference, error)
Evaluate: true,
})
if err != nil {
return nil, err
return nil, bkCleanError(err)
}
// always use single reference (ignore multiple outputs & metadata)
return res.SingleRef()