From 1018138fb07e343747812afd8e9051105c123470 Mon Sep 17 00:00:00 2001 From: random-zebra Date: Wed, 5 May 2021 00:53:39 +0200 Subject: [PATCH] [Trivial] Add wallet filename to backup errors/warning --- src/wallet/wallet.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 4eb1dbb5f5a92a..a70ee640b9cfa5 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -4377,8 +4377,12 @@ bool CWallet::InitLoadWallet() // automatic backups std::string strWarning, strError; if(!AutoBackupWallet(walletFile, strWarning, strError)) { - if (!strWarning.empty()) UIWarning(strWarning); - if (!strError.empty()) return UIError(strError); + if (!strWarning.empty()) { + UIWarning(strprintf("%s: %s", walletFile, strWarning)); + } + if (!strError.empty()) { + return UIError(strprintf("%s: %s", walletFile, strError)); + } } CWallet * const pwallet = CreateWalletFromFile(walletFile);