aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-08-22 09:58:00 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-08-22 09:58:28 +0200
commita55a018d5f2da05217b83e253555a3ab1016dda8 (patch)
tree82400e148cf09a1121657362699efc3baa28093b /src/main.cpp
parent2468292a03539c5b46220db15078f81915006915 (diff)
parentfa785d121152c652d0704ac32ce8611262e609d2 (diff)
Merge #8548: [wallet] Use __func__ to get function name for output printing
fa785d1 Use __func__ to get function name for output printing (MarcoFalke)
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 75f991d31a..27ab677eb1 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -3942,7 +3942,7 @@ CBlockIndex * InsertBlockIndex(uint256 hash)
// Create new
CBlockIndex* pindexNew = new CBlockIndex();
if (!pindexNew)
- throw runtime_error("LoadBlockIndex(): new CBlockIndex failed");
+ throw runtime_error(std::string(__func__) + ": new CBlockIndex failed");
mi = mapBlockIndex.insert(make_pair(hash, pindexNew)).first;
pindexNew->phashBlock = &((*mi).first);