Use __func__ to get function name for output printing

Github-Pull: #8548
Rebased-From: fa785d121152c652d0704ac32ce8611262e609d2
This commit is contained in:
MarcoFalke
2016-08-19 18:31:35 +02:00
committed by Luke Dashjr
parent 464dedd6ab
commit 305d8ac90b
4 changed files with 21 additions and 21 deletions

View File

@@ -215,7 +215,7 @@ void CWalletDB::ListAccountCreditDebit(const string& strAccount, list<CAccountin
Dbc* pcursor = GetCursor();
if (!pcursor)
throw runtime_error("CWalletDB::ListAccountCreditDebit(): cannot create DB cursor");
throw runtime_error(std::string(__func__) + ": cannot create DB cursor");
unsigned int fFlags = DB_SET_RANGE;
while (true)
{
@@ -231,7 +231,7 @@ void CWalletDB::ListAccountCreditDebit(const string& strAccount, list<CAccountin
else if (ret != 0)
{
pcursor->close();
throw runtime_error("CWalletDB::ListAccountCreditDebit(): error scanning DB");
throw runtime_error(std::string(__func__) + ": error scanning DB");
}
// Unserialize