Page MenuHomePhabricator

[backport#15491] wallet: Improve log output for errors during load
ClosedPublic

Authored by majcosta on Jul 24 2020, 03:37.

Details

Summary

faf369880 wallet: Improve log output for errors during load (Glenn Willen)

Pull request description:

When loading the wallet, display the entire path in error messages, instead of
the name (which, for the default wallet, is the empty string.)

When an exception occurs during wallet loading, display e.what() if possible,
instead of nothing.

https://github.com/bitcoin/bitcoin/pull/15491/commits/faf369880822188f2738c6f046d9ef14c9585713


Backport of Core PR15491

Test Plan
ninja check check-functional

Event Timeline

Fabien added a subscriber: Fabien.
Fabien added inline comments.
src/wallet/db.h
107

Layout

This revision is now accepted and ready to land.Jul 24 2020, 12:45

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.