Browse Source

In curl integration test, include output along with non-zero exit status in failure message.

Change-Id: I5bc392586ba54fc83bc5e54b7b4c27ef25530e4c
Brad Fitzpatrick 11 years ago
parent
commit
7684780928
1 changed files with 1 additions and 1 deletions
  1. 1 1
      http2_test.go

+ 1 - 1
http2_test.go

@@ -140,7 +140,7 @@ func dockerLogs(container string) ([]byte, error) {
 	out, err = exec.Command("docker", "logs", container).CombinedOutput()
 	exec.Command("docker", "rm", container).Run()
 	if err == nil && exitStatus != 0 {
-		err = fmt.Errorf("exit status %d", exitStatus)
+		err = fmt.Errorf("exit status %d: %s", exitStatus, out)
 	}
 	return out, err
 }