Explorar o código

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

Change-Id: I5bc392586ba54fc83bc5e54b7b4c27ef25530e4c
Brad Fitzpatrick %!s(int64=11) %!d(string=hai) anos
pai
achega
7684780928
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 }