Skip to content

Commit

Permalink
dockerfile: remove unnecessary error wrappings
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <[email protected]>
  • Loading branch information
tonistiigi committed Jul 3, 2021
1 parent 9b5afbb commit 49524c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/dockerfile/builder/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion solver/llbsolver/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 49524c6

Please sign in to comment.