mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-31 14:44:50 +00:00
kubectl: kubectl version better error message
Kubernetes-commit: 047ef3f6b6fa4a2345640a608211ed3e177587e6
This commit is contained in:
committed by
Kubernetes Publisher
parent
68a55fba7c
commit
959fd3518b
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user