Fix logic for CreateTemp needing either appdata or datadir
This commit is contained in:
parent
f3df6c8bc9
commit
127246fb22
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue