mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 17:58:09 +08:00
fix: show correct error message
This commit is contained in:
@@ -758,7 +758,7 @@ parse_offset_datetime(location<Container>& loc)
|
|||||||
{
|
{
|
||||||
loc.reset(first);
|
loc.reset(first);
|
||||||
return err(format_underline("[error]: toml::parse_offset_datetime: ",
|
return err(format_underline("[error]: toml::parse_offset_datetime: ",
|
||||||
{{std::addressof(loc), "the next token is not a local_datetime"}}));
|
{{std::addressof(loc), "the next token is not a offset_datetime"}}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user