aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletutil.cpp
diff options
context:
space:
mode:
authorJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-04-29 00:05:55 +0100
committerJoão Barbosa <joao.paulo.barbosa@gmail.com>2019-04-29 00:07:55 +0100
commit70c1cf8c1c07091544d060191715027282e87b57 (patch)
treecfd6866d3e6ce7c619b83fe167e60c64ac46f546 /src/wallet/walletutil.cpp
parentbdd7217f2c03007ce1df85cd9a750d1893d88cdc (diff)
wallet: Avoid logging no_such_file_or_directory error
Diffstat (limited to 'src/wallet/walletutil.cpp')
-rw-r--r--src/wallet/walletutil.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/walletutil.cpp b/src/wallet/walletutil.cpp
index 2d8adf8ba6..b227a15556 100644
--- a/src/wallet/walletutil.cpp
+++ b/src/wallet/walletutil.cpp
@@ -31,6 +31,8 @@ fs::path GetWalletDir()
static bool IsBerkeleyBtree(const fs::path& path)
{
+ if (!fs::exists(path)) return false;
+
// A Berkeley DB Btree file has at least 4K.
// This check also prevents opening lock files.
boost::system::error_code ec;