Make changes suggested in #7675

This commit is contained in:
CJ Cullen
2015-05-04 15:45:33 -07:00
parent 72048a824c
commit 1ec0fb2e3d
4 changed files with 17 additions and 17 deletions

View File

@@ -517,7 +517,7 @@ func GetEtcdVersion(host string) (string, error) {
}
defer response.Body.Close()
if response.StatusCode != http.StatusOK {
return "", fmt.Errorf("Unsuccessful response from server: %v", err)
return "", fmt.Errorf("unsuccessful response from etcd server %q: %v", host, err)
}
versionBytes, err := ioutil.ReadAll(response.Body)
if err != nil {