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

@@ -111,7 +111,7 @@ CAmount CTransaction::GetValueOut() const
{
nValueOut += it->nValue;
if (!MoneyRange(it->nValue) || !MoneyRange(nValueOut))
throw std::runtime_error("CTransaction::GetValueOut(): value out of range");
throw std::runtime_error(std::string(__func__) + ": value out of range");
}
return nValueOut;
}