diff options
author | Glenn Willen <gwillen@nerdnet.org> | 2019-03-06 13:22:41 -0800 |
---|---|---|
committer | Glenn Willen <gwillen@nerdnet.org> | 2019-03-14 18:49:19 -0700 |
commit | faf369880822188f2738c6f046d9ef14c9585713 (patch) | |
tree | e16897d77ccb2c21bb4ba22ead17925767bcb50f /src/wallet/wallet.cpp | |
parent | 4952a953585e99477a89989b009749e40c173013 (diff) | |
download | bitcoin-faf369880822188f2738c6f046d9ef14c9585713.tar.xz |
wallet: Improve log output for errors during load
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.
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 02f3a265d9..93f413293d 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -4074,7 +4074,7 @@ bool CWallet::Verify(interfaces::Chain& chain, const WalletLocation& location, b std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain, const WalletLocation& location, uint64_t wallet_creation_flags) { - const std::string& walletFile = location.GetName(); + const std::string& walletFile = WalletDataFilePath(location.GetPath()).string(); // needed to restore wallet transaction meta data after -zapwallettxes std::vector<CWalletTx> vWtx; |