From 2266ba71656a53f40acd1a13f1fe5e8d9851427d Mon Sep 17 00:00:00 2001 From: Parker Van Roy Date: Mon, 10 Aug 2020 14:37:12 -0400 Subject: Error pass through for more accurate error reporting Included old error + wrapped Signed-off-by: Parker Van Roy --- pkg/domain/infra/abi/images.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/domain/infra') 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) } } -- cgit v1.2.3-54-g00ecf