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

This commit is contained in:
Hitoshi Mitake 2017-09-20 17:01:04 +09:00
parent aca8a0d5b9
commit 8a4c8dc3b0

View File

@ -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())