kubectl: kubectl version better error message

pull/564/head
Ahmad Nurus S 2019-01-10 01:21:24 +07:00
parent 76961c517e
commit 047ef3f6b6
1 changed files with 1 additions and 1 deletions

View File

@ -381,7 +381,7 @@ func (d *DiscoveryClient) ServerVersion() (*version.Info, error) {
var info version.Info
err = json.Unmarshal(body, &info)
if err != nil {
return nil, fmt.Errorf("got '%s': %v", string(body), err)
return nil, fmt.Errorf("unable to parse the server version: %v", err)
}
return &info, nil
}