Fix logic for CreateTemp needing either appdata or datadir

This commit is contained in:
Alex Yocom-Piatt 2016-06-16 16:03:28 -05:00
parent f3df6c8bc9
commit 127246fb22

View file

@ -390,7 +390,7 @@ func loadConfig() (*config, []string, error) {
// Exit if you try to use a simulation wallet with a standard
// data directory.
if (!cfg.AppDataDir.ExplicitlySet() || !cfg.DataDir.ExplicitlySet()) && cfg.CreateTemp {
if !(cfg.AppDataDir.ExplicitlySet() || cfg.DataDir.ExplicitlySet()) && cfg.CreateTemp {
fmt.Fprintln(os.Stderr, "Tried to create a temporary simulation "+
"wallet, but failed to specify data directory!")
os.Exit(0)