From 296297e53ff4fd601960817fd112f9b7d663a9ab Mon Sep 17 00:00:00 2001 From: Violet Hynes Date: Tue, 18 Oct 2022 10:57:20 -0400 Subject: [PATCH] Fix format strings missing an argument (#17581) --- helper/testhelpers/docker/testhelpers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helper/testhelpers/docker/testhelpers.go b/helper/testhelpers/docker/testhelpers.go index d5e99458b..5166cfb01 100644 --- a/helper/testhelpers/docker/testhelpers.go +++ b/helper/testhelpers/docker/testhelpers.go @@ -509,13 +509,13 @@ func BuildContextFromTarball(reader io.Reader) (BuildContext, error) { break } - return nil, fmt.Errorf("failed to parse provided tarball: %v") + return nil, fmt.Errorf("failed to parse provided tarball: %v", err) } data := make([]byte, int(header.Size)) read, err := archive.Read(data) if err != nil { - return nil, fmt.Errorf("failed to parse read from provided tarball: %v") + return nil, fmt.Errorf("failed to parse read from provided tarball: %v", err) } if read != int(header.Size) {