diff options
author | Parker Van Roy <pvanroy@redhat.com> | 2020-08-10 14:37:12 -0400 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2020-08-20 12:16:53 -0400 |
commit | 4f349554adf4811d1081f55c2ba90952c57475e6 (patch) | |
tree | 5fce86a02bd2a40f3dd52353d470e4990c79fe99 | |
parent | fc24c0cc102de911387ed6b768173604fecb1eee (diff) | |
download | podman-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.go | 2 |
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) } } |