dockerfile: remove unnecessary error wrappings

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
v0.9
Tonis Tiigi 2021-07-01 21:14:51 -07:00
parent de5e10864d
commit 4e4152832c
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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