Do not eat error messages from pullImage

Signed-off-by: Matthew Heon <mheon@redhat.com>

Closes: #668
Approved by: rhatdan
This commit is contained in:
Matthew Heon
2018-04-24 17:21:42 -04:00
committed by Atomic Bot
parent 22011b428c
commit 379404d306

View File

@ -140,7 +140,7 @@ func (ir *Runtime) New(ctx context.Context, name, signaturePolicyPath, authfile
}
imageName, err := newImage.pullImage(ctx, writer, authfile, signaturePolicyPath, signingoptions, dockeroptions, forceSecure)
if err != nil {
return nil, errors.Errorf("unable to pull %s", name)
return nil, errors.Wrapf(err, "unable to pull %s", name)
}
newImage.InputName = imageName