Show the block address if block_cache::get() failed
This commit is contained in:
parent
c8276a41f7
commit
11cd796652
@ -620,7 +620,9 @@ block_cache::get(block_address index, unsigned flags, validator::ptr v)
|
|||||||
return *b;
|
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
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user