Fix format strings missing an argument (#17581)
This commit is contained in:
parent
392fad9365
commit
296297e53f
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue