Use __func__ to get function name for output printing

This commit is contained in:
MarcoFalke
2016-08-19 18:31:35 +02:00
committed by lateminer
parent 152011e50d
commit 26d768db6f
4 changed files with 17 additions and 17 deletions

View File

@@ -232,7 +232,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)
{
@@ -248,7 +248,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