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

This commit is contained in:
Yifan Gu 2016-02-22 17:07:31 -08:00
parent 201d60b426
commit 2d2225414f

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
}