diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index ffee83868c3289..0c718c97229c9b 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);