From 9adcb2aa4107eee297917bb99f890a495f7afff9 Mon Sep 17 00:00:00 2001 From: "David R. Jenni" Date: Sun, 5 Nov 2017 10:15:23 +0100 Subject: [PATCH] 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 Reviewed-by: Brad Fitzpatrick Run-TryBot: Gabriel Aszalos --- cmd/getgo/download.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/getgo/download.go b/cmd/getgo/download.go index ae46549be9..a68f47443a 100644 --- a/cmd/getgo/download.go +++ b/cmd/getgo/download.go @@ -44,7 +44,7 @@ func downloadGoVersion(version, ops, arch, dest string) error { return fmt.Errorf("Downloading Go from %s failed: %v", uri, err) } 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() @@ -69,7 +69,7 @@ func downloadGoVersion(version, ops, arch, dest string) error { } defer sresp.Body.Close() 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)