Merge pull request #674 from tonistiigi/wrap-error
dockerfile: wrap reference parse errordocker-18.09
commit
853a333ddc
|
@ -212,7 +212,7 @@ func Dockerfile2LLB(ctx context.Context, dt []byte, opt ConvertOpt) (*llb.State,
|
|||
eg.Go(func() error {
|
||||
ref, err := reference.ParseNormalizedNamed(d.stage.BaseName)
|
||||
if err != nil {
|
||||
return err
|
||||
return errors.Wrapf(err, "failed to parse stage name %q", d.stage.BaseName)
|
||||
}
|
||||
platform := d.platform
|
||||
if platform == nil {
|
||||
|
|
Loading…
Reference in New Issue