Merge pull request #72740 from prksu/kubectl-version-better-error-msg

kubectl: kubectl version better error message
pull/564/head
Kubernetes Prow Robot 2019-01-19 03:35:47 -08:00 committed by GitHub
commit 771baea30e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
}