Fix format strings missing an argument (#17581)

This commit is contained in:
Violet Hynes 2022-10-18 10:57:20 -04:00 committed by GitHub
parent 392fad9365
commit 296297e53f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -509,13 +509,13 @@ func BuildContextFromTarball(reader io.Reader) (BuildContext, error) {
break 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)) data := make([]byte, int(header.Size))
read, err := archive.Read(data) read, err := archive.Read(data)
if err != nil { 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) { if read != int(header.Size) {