HomePhabricator

[backport#15917] wallet: Avoid logging no_such_file_or_directory error

Description

[backport#15917] wallet: Avoid logging no_such_file_or_directory error

Summary:
wallet: Avoid logging no_such_file_or_directory error (João Barbosa)

Pull request description:

Avoid logging `IsBerkeleyBtree: No such file or directory ...`. The result of `IsBerkeleyBtree` is the same since `fs::file_size()` returns 0 for non existent files.

Fix #15912.

Backport of Core PR15917

Test Plan:

ninja check

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D7351

Details

Provenance
MarcoFalke <falke.marco@gmail.com>Authored on Apr 29 2019, 12:06
majcostaCommitted on Sep 4 2020, 02:04
majcostaPushed on Sep 4 2020, 02:04
Reviewer
Restricted Project
Differential Revision
D7351: [backport#15917] wallet: Avoid logging no_such_file_or_directory error
Parents
rABCb92fb329325f: [backport#15583] wallet: Log and ignore errors in ListWalletDir and…
Branches
Unknown
Tags
Unknown