From 6483a2e6dc691ad331bf2309290e3f706b08e301 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Mon, 15 Jan 2018 17:05:39 +0000 Subject: [PATCH] linuxkit: print response status, not the response object when validating a URL go_vet (via https://goreportcard.com/report/github.com/linuxkit/linuxkit) reported: error: arg resp for printf verb %s of wrong type: *net/http.Response (vet) Signed-off-by: Ian Campbell --- src/cmd/linuxkit/run_packet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd/linuxkit/run_packet.go b/src/cmd/linuxkit/run_packet.go index 144e40c12..32ca3e6e8 100644 --- a/src/cmd/linuxkit/run_packet.go +++ b/src/cmd/linuxkit/run_packet.go @@ -291,7 +291,7 @@ func validateHTTPURL(url string) error { return err } if resp.StatusCode >= 400 { - return fmt.Errorf("Got a non 200- or 300- HTTP response code: %s", resp) + return fmt.Errorf("Got a non 200- or 300- HTTP response code: %s", resp.Status) } return nil }