Commit 4fe0d210 authored by Daniel Lipovetsky's avatar Daniel Lipovetsky

kubeadm: Make exec error message more informative

parent bb9a12d6
...@@ -33,7 +33,7 @@ func GetKubeletVersion(execer utilsexec.Interface) (*version.Version, error) { ...@@ -33,7 +33,7 @@ func GetKubeletVersion(execer utilsexec.Interface) (*version.Version, error) {
command := execer.Command("kubelet", "--version") command := execer.Command("kubelet", "--version")
out, err := command.CombinedOutput() out, err := command.CombinedOutput()
if err != nil { if err != nil {
return nil, err return nil, errors.Wrap(err, "cannot execute 'kubelet --version'")
} }
cleanOutput := strings.TrimSpace(string(out)) cleanOutput := strings.TrimSpace(string(out))
......
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