diff --git a/download/proxy.go b/download/proxy.go index 7eda5c9d..65f10bc4 100644 --- a/download/proxy.go +++ b/download/proxy.go @@ -63,7 +63,7 @@ func (c *ProxyClient) ModuleName(path string) (string, error) { } if resp.StatusCode != http.StatusOK { - return "", fmt.Errorf("could not get module name from %s: %s", u, string(b)) + return "", fmt.Errorf("could not get module name from %s", u) } sp := strings.Split(string(b), "\n") @@ -91,8 +91,7 @@ func (c *ProxyClient) LatestVersion(path string) (string, error) { defer resp.Body.Close() if resp.StatusCode != http.StatusOK { - b, _ := io.ReadAll(resp.Body) - return "", fmt.Errorf("could not get latest module version from %s: %s", u, string(b)) + return "", fmt.Errorf("could not get latest module version from %s", u) } var mv moduleVersion