Make container exec failures in e2e easier to debug

This commit is contained in:
Paul Morie 2016-09-16 21:20:03 -04:00
parent e5a84398db
commit 78d268e7d3

View File

@ -55,8 +55,8 @@ func (f *Framework) ExecCommandInContainer(podName, containerName string, cmd ..
}, api.ParameterCodec)
err = execute("POST", req.URL(), config, stdin, &stdout, &stderr, tty)
Expect(err).NotTo(HaveOccurred(), "post request failed")
Logf("Exec stderr: %q", stderr.String())
Expect(err).NotTo(HaveOccurred(), "post request failed")
return strings.TrimSpace(stdout.String())
}