aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/init.cpp
diff options
context:
space:
mode:
authorMeshCollider <dobsonsa68@gmail.com>2017-11-18 13:36:37 +1300
committerMeshCollider <dobsonsa68@gmail.com>2017-12-13 23:36:43 +1300
commitb67342906ced2353d378f4369c8d8a979d525fee (patch)
treee9872fb5c48a83b3407daed81661488e583e3137 /src/wallet/init.cpp
parent0d89fa0877930c6c8a539a656c1009ad8ab6755b (diff)
downloadbitcoin-b67342906ced2353d378f4369c8d8a979d525fee.tar.xz
Cleanups for walletdir PR
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 67c46df87d..788bac2a46 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());