mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 18:41:37 +00:00
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 <ijc@docker.com>
This commit is contained in:
parent
190a87557f
commit
6483a2e6dc
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user