dockerfile: remove unnecessary error wrappings
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>v0.9
parent
de5e10864d
commit
4e4152832c
|
@ -425,7 +425,7 @@ func Build(ctx context.Context, c client.Client) (*client.Result, error) {
|
|||
})
|
||||
|
||||
if err != nil {
|
||||
return errors.Wrapf(err, "failed to create LLB definition")
|
||||
return err
|
||||
}
|
||||
|
||||
def, err := st.Marshal(ctx)
|
||||
|
|
|
@ -126,7 +126,7 @@ func (b *llbBridge) Solve(ctx context.Context, req frontend.SolveRequest, sid st
|
|||
}
|
||||
res, err = f.Solve(ctx, b, req.FrontendOpt, req.FrontendInputs, sid, b.sm)
|
||||
if err != nil {
|
||||
return nil, errors.Wrapf(err, "failed to solve with frontend %s", req.Frontend)
|
||||
return nil, err
|
||||
}
|
||||
} else {
|
||||
return &frontend.Result{}, nil
|
||||
|
|
Loading…
Reference in New Issue