Browse Source

e2e: log an error of TempDir() during the preparation of cluster creation

Hitoshi Mitake 8 years ago
parent
commit
8a4c8dc3b0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      e2e/cluster_test.go

+ 1 - 1
e2e/cluster_test.go

@@ -197,7 +197,7 @@ func (cfg *etcdProcessClusterConfig) etcdServerProcessConfigs() []*etcdServerPro
 			var derr error
 			dataDirPath, derr = ioutil.TempDir("", name+".etcd")
 			if derr != nil {
-				panic("could not get tempdir for datadir")
+				panic(fmt.Sprintf("could not get tempdir for datadir: %s", derr))
 			}
 		}
 		initialCluster[i] = fmt.Sprintf("%s=%s", name, purl.String())