Merge pull request #1195 from timstclair/e2e-errors

Fix e2e test command output formatting
This commit is contained in:
Tim St. Clair 2016-04-06 11:32:33 -07:00
commit 8ddbae4202

View File

@ -75,7 +75,7 @@ func getAttributes(ipAddress, portStr string) (*cadvisorApi.Attributes, error) {
func RunCommand(cmd string, args ...string) error {
output, err := exec.Command(cmd, args...).CombinedOutput()
if err != nil {
return fmt.Errorf("command %q %q failed with error: %v and output: %v", cmd, args, err, output)
return fmt.Errorf("command %q %q failed with error: %v and output: %s", cmd, args, err, output)
}
return nil