diff options
author | MarcoFalke <falke.marco@gmail.com> | 2016-08-19 18:31:35 +0200 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2016-09-21 02:43:47 +0000 |
commit | 305d8ac90b5c1301ec243024a5c68880f7a27ccc (patch) | |
tree | 2ac3728c38fc1a5362772374e6378c96b5d4f789 /src/main.cpp | |
parent | 464dedd6ab496bb520cc8a5b1b69ca7ebdcdf815 (diff) | |
download | bitcoin-305d8ac90b5c1301ec243024a5c68880f7a27ccc.tar.xz |
Use __func__ to get function name for output printing
Github-Pull: #8548
Rebased-From: fa785d121152c652d0704ac32ce8611262e609d2
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 45af5138c3..8d8fb1502d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3962,7 +3962,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); |