pull: remove cryptic error message

we were printing something like:

(0x1840f00,0xc00041bba0)

Closes: https://github.com/containers/libpod/issues/2710

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2019-04-12 14:19:11 +02:00
parent 387d6012ba
commit 6f3d2edc2b
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ func init() {
// pullCmd gets the data from the command line and calls pullImage
// to copy an image from a registry to a local machine
func pullCmd(c *cliconfig.PullValues) error {
func pullCmd(c *cliconfig.PullValues) (retError error) {
if c.Bool("trace") {
span, _ := opentracing.StartSpanFromContext(Ctx, "pullCmd")
defer span.Finish()
@ -163,7 +163,7 @@ func pullCmd(c *cliconfig.PullValues) error {
for _, name := range names {
newImage, err := runtime.New(getContext(), name, c.String("signature-policy"), authfile, writer, &dockerRegistryOptions, image.SigningOptions{}, true, nil)
if err != nil {
println(errors.Wrapf(err, "error pulling image %q", name))
logrus.Errorf("error pulling image %q", name)
foundImage = false
continue
}