aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/init.cpp
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2017-12-20 17:37:52 -0500
committerMarcoFalke <[email protected]>2017-12-20 17:37:57 -0500
commit604e08c83cf58ca7e7cda2ab284c1ace7bb12977 (patch)
tree277c3aebee5e677bcf9e7654872d9411a00dfbbf /src/wallet/init.cpp
parentMerge #10657: Utils: Improvements to ECDSA key-handling code (diff)
parentUpdate files.md for new wallets/ subdirectory (diff)
downloaddiscoin-604e08c83cf58ca7e7cda2ab284c1ace7bb12977.tar.xz
discoin-604e08c83cf58ca7e7cda2ab284c1ace7bb12977.zip
Merge #11726: Cleanups + nit fixes for walletdir PR
aac6b3f067 Update files.md for new wallets/ subdirectory (MeshCollider) b67342906c Cleanups for walletdir PR (MeshCollider) Pull request description: This addresses the remaining nits from https://github.com/bitcoin/bitcoin/pull/11466 - Updates `doc/files.md` with respect to the new default wallet directory - Fixes @promag and @laanwj's error message nit, and Jonas' release notes nit - ~Addresses @laanwj's net-specific wallet subdirectory concern in the case that a walletdir is specified~ - Changes the #includes from "" to <> style after #11651 Tree-SHA512: b86bf5fdc4de54c1b0f65b60a83af3cf82b35d216ce9c0de724803bfba6934796238b6c412659dcc29ae2e3e856d4eb97ae777c80f36f4089d8acecfddefe9aa
Diffstat (limited to 'src/wallet/init.cpp')
-rw-r--r--src/wallet/init.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp
index 67c46df87..788bac2a4 100644
--- a/src/wallet/init.cpp
+++ b/src/wallet/init.cpp
@@ -194,7 +194,10 @@ bool VerifyWallets()
}
if (gArgs.IsArgSet("-walletdir") && !fs::is_directory(GetWalletDir())) {
- return InitError(strprintf(_("Error: Specified wallet directory \"%s\" does not exist."), gArgs.GetArg("-walletdir", "").c_str()));
+ if (fs::exists(fs::system_complete(gArgs.GetArg("-walletdir", "")))) {
+ return InitError(strprintf(_("Specified -walletdir \"%s\" is not a directory"), gArgs.GetArg("-walletdir", "").c_str()));
+ }
+ return InitError(strprintf(_("Specified -walletdir \"%s\" does not exist"), gArgs.GetArg("-walletdir", "").c_str()));
}
LogPrintf("Using wallet directory %s\n", GetWalletDir().string());