From 70c1cf8c1c07091544d060191715027282e87b57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Barbosa?= Date: Mon, 29 Apr 2019 00:05:55 +0100 Subject: [PATCH] wallet: Avoid logging no_such_file_or_directory error --- src/wallet/walletutil.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wallet/walletutil.cpp b/src/wallet/walletutil.cpp index 2d8adf8ba..b227a1555 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;