rkt: fix KillPod() to return the correct error message.

pull/6/head
Yifan Gu 2016-02-22 17:07:31 -08:00
parent 201d60b426
commit 2d2225414f
1 changed files with 2 additions and 1 deletions

View File

@ -1045,7 +1045,8 @@ func (r *Runtime) KillPod(pod *api.Pod, runningPod kubecontainer.Pod) error {
res := <-reschan
if res != "done" {
glog.Errorf("rkt: Failed to stop unit %q: %s", serviceName, res)
err := fmt.Errorf("invalid result: %s", res)
glog.Errorf("rkt: Failed to stop unit %q: %v", serviceName, err)
return err
}