Commit e976c4e2 authored by Slava Semushin's avatar Slava Semushin

Include original error in the error message.

parent 90c09c75
...@@ -452,7 +452,8 @@ func BuildGenericConfig(s *options.ServerRunOptions, proxyTransport *http.Transp ...@@ -452,7 +452,8 @@ func BuildGenericConfig(s *options.ServerRunOptions, proxyTransport *http.Transp
// groups. This leads to a nil client above and undefined behaviour further down. // groups. This leads to a nil client above and undefined behaviour further down.
// //
// TODO: get rid of KUBE_API_VERSIONS or define sane behaviour if set // TODO: get rid of KUBE_API_VERSIONS or define sane behaviour if set
glog.Errorf("Failed to create clientset with KUBE_API_VERSIONS=%q. KUBE_API_VERSIONS is only for testing. Things will break.", kubeAPIVersions) glog.Errorf("Failed to create clientset with KUBE_API_VERSIONS=%q: %v. KUBE_API_VERSIONS is only for testing. Things will break.",
kubeAPIVersions, err)
} }
kubeClientConfig := genericConfig.LoopbackClientConfig kubeClientConfig := genericConfig.LoopbackClientConfig
......
...@@ -162,7 +162,8 @@ func (c completedConfig) New(delegationTarget genericapiserver.DelegationTarget) ...@@ -162,7 +162,8 @@ func (c completedConfig) New(delegationTarget genericapiserver.DelegationTarget)
// groups. This leads to a nil client above and undefined behaviour further down. // groups. This leads to a nil client above and undefined behaviour further down.
// //
// TODO: get rid of KUBE_API_VERSIONS or define sane behaviour if set // TODO: get rid of KUBE_API_VERSIONS or define sane behaviour if set
glog.Errorf("Failed to create clientset with KUBE_API_VERSIONS=%q. KUBE_API_VERSIONS is only for testing. Things will break.", kubeAPIVersions) glog.Errorf("Failed to create clientset with KUBE_API_VERSIONS=%q: %v. KUBE_API_VERSIONS is only for testing. Things will break.",
kubeAPIVersions, err)
} }
s.Informers = internalinformers.NewSharedInformerFactory(crdClient, 5*time.Minute) s.Informers = internalinformers.NewSharedInformerFactory(crdClient, 5*time.Minute)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment