Browse Source

integration-cli-on-swarm: print detailed error

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
Akihiro Suda 8 years ago
parent
commit
3fd386fed1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hack/integration-cli-on-swarm/host/dockercmd.go

+ 1 - 1
hack/integration-cli-on-swarm/host/dockercmd.go

@@ -43,7 +43,7 @@ func deployStack(unusedCli *client.Client, stackName, composeFilePath string) er
 
 func hasStack(unusedCli *client.Client, stackName string) bool {
 	// FIXME: eliminate os/exec (but stack is implemented in CLI ...)
-	out, err := exec.Command("docker", "stack", "ls").Output()
+	out, err := exec.Command("docker", "stack", "ls").CombinedOutput()
 	if err != nil {
 		panic(fmt.Errorf("`docker stack ls` failed with: %s", string(out)))
 	}