cmd/getgo: fix vet failure caused by missing argument to Errorf call.
Change-Id: I2812e2c655a0e463203f5c2ede08182c40556953 Reviewed-on: https://go-review.googlesource.com/75975 Reviewed-by: Gabriel Aszalos <gabriel.aszalos@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Gabriel Aszalos <gabriel.aszalos@gmail.com>
This commit is contained in:
parent
9e72de2cfb
commit
9adcb2aa41
|
@ -44,7 +44,7 @@ func downloadGoVersion(version, ops, arch, dest string) error {
|
||||||
return fmt.Errorf("Downloading Go from %s failed: %v", uri, err)
|
return fmt.Errorf("Downloading Go from %s failed: %v", uri, err)
|
||||||
}
|
}
|
||||||
if resp.StatusCode > 299 {
|
if resp.StatusCode > 299 {
|
||||||
return fmt.Errorf("Downloading Go from %s failed with HTTP status %s", resp.Status)
|
return fmt.Errorf("Downloading Go from %s failed with HTTP status %s", uri, resp.Status)
|
||||||
}
|
}
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ func downloadGoVersion(version, ops, arch, dest string) error {
|
||||||
}
|
}
|
||||||
defer sresp.Body.Close()
|
defer sresp.Body.Close()
|
||||||
if sresp.StatusCode > 299 {
|
if sresp.StatusCode > 299 {
|
||||||
return fmt.Errorf("Downloading Go sha256 from %s.sha256 failed with HTTP status %s", sresp.Status)
|
return fmt.Errorf("Downloading Go sha256 from %s.sha256 failed with HTTP status %s", uri, sresp.Status)
|
||||||
}
|
}
|
||||||
|
|
||||||
shasum, err := ioutil.ReadAll(sresp.Body)
|
shasum, err := ioutil.ReadAll(sresp.Body)
|
||||||
|
|
Loading…
Reference in New Issue