Show the block address if block_cache::get() failed

This commit is contained in:
Ming-Hung Tsai 2016-02-27 01:27:27 +08:00
parent c8276a41f7
commit 11cd796652

View File

@ -620,7 +620,9 @@ block_cache::get(block_address index, unsigned flags, validator::ptr v)
return *b;
}
throw std::runtime_error("couldn't get block");
std::ostringstream out;
out << "couldn't get block " << index;
throw std::runtime_error(out.str());
}
void