config/Data: add WithEach(ConfigBlockOption)
To improve error messages without making callers more complex.
This commit is contained in:
@@ -143,3 +143,10 @@ ConfigBlock::GetBlockValue(const char *name, bool default_value) const
|
||||
|
||||
return bp->GetBoolValue();
|
||||
}
|
||||
|
||||
void
|
||||
ConfigBlock::ThrowWithNested() const
|
||||
{
|
||||
std::throw_with_nested(FormatRuntimeError("Error in block on line %i",
|
||||
line));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user