Skip to content

Commit 70c1cf8

Browse files
committed
wallet: Avoid logging no_such_file_or_directory error
1 parent bdd7217 commit 70c1cf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wallet/walletutil.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ fs::path GetWalletDir()
3131

3232
static bool IsBerkeleyBtree(const fs::path& path)
3333
{
34+
if (!fs::exists(path)) return false;
35+
3436
// A Berkeley DB Btree file has at least 4K.
3537
// This check also prevents opening lock files.
3638
boost::system::error_code ec;

0 commit comments

Comments
 (0)