summaryrefslogtreecommitdiff
path: root/pkg/domain/infra
diff options
context:
space:
mode:
authorParker Van Roy <pvanroy@redhat.com>2020-08-10 14:37:12 -0400
committerParker Van Roy <pvanroy@redhat.com>2020-08-10 15:49:46 -0400
commit2266ba71656a53f40acd1a13f1fe5e8d9851427d (patch)
tree969a882d5b84d6c189a51907cb682d065de77f39 /pkg/domain/infra
parent68fd9aa2cf67a749258ccdc6fa8fd89c2557ebfc (diff)
downloadpodman-2266ba71656a53f40acd1a13f1fe5e8d9851427d.tar.gz
podman-2266ba71656a53f40acd1a13f1fe5e8d9851427d.tar.bz2
podman-2266ba71656a53f40acd1a13f1fe5e8d9851427d.zip
Error pass through for more accurate error reporting
Included old error + wrapped Signed-off-by: Parker Van Roy <pvanroy@redhat.com>
Diffstat (limited to 'pkg/domain/infra')
-rw-r--r--pkg/domain/infra/abi/images.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/domain/infra/abi/images.go b/pkg/domain/infra/abi/images.go
index 35675e1f3..70d740bb5 100644
--- a/pkg/domain/infra/abi/images.go
+++ b/pkg/domain/infra/abi/images.go
@@ -226,7 +226,7 @@ func (ir *ImageEngine) Pull(ctx context.Context, rawImage string, options entiti
if err != nil {
imageRef, err = alltransports.ParseImageName(fmt.Sprintf("%s%s", dockerPrefix, rawImage))
if err != nil {
- return nil, errors.Errorf("invalid image reference %q", rawImage)
+ return nil, errors.Wrapf(err, "invalid image reference %q", rawImage)
}
}