aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParker Van Roy <pvanroy@redhat.com>2020-08-10 14:37:12 -0400
committerMatthew Heon <matthew.heon@pm.me>2020-08-20 12:16:53 -0400
commit4f349554adf4811d1081f55c2ba90952c57475e6 (patch)
tree5fce86a02bd2a40f3dd52353d470e4990c79fe99
parentfc24c0cc102de911387ed6b768173604fecb1eee (diff)
downloadpodman-4f349554adf4811d1081f55c2ba90952c57475e6.tar.gz
podman-4f349554adf4811d1081f55c2ba90952c57475e6.tar.bz2
podman-4f349554adf4811d1081f55c2ba90952c57475e6.zip
Error pass through for more accurate error reporting
Included old error + wrapped Signed-off-by: Parker Van Roy <pvanroy@redhat.com>
-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 5f19f416a..a4dc92820 100644
--- a/pkg/domain/infra/abi/images.go
+++ b/pkg/domain/infra/abi/images.go
@@ -108,7 +108,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)
}
}