diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-08-19 18:31:35 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2016-08-19 18:59:00 +0200 |
commit | fa785d121152c652d0704ac32ce8611262e609d2 (patch) | |
tree | 90d5d1447ea393bbf2471733f44d7c08f92be150 /src/main.cpp | |
parent | 7e5d94df1fb09ed7ee7ed50032f876972ef39489 (diff) |
Use __func__ to get function name for output printing
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 46118fff81..a6bf96f3e4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3954,7 +3954,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); |