mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-17 00:38:08 +08:00
fix error message for empty value
This commit is contained in:
@@ -971,7 +971,8 @@ parse_key_value_pair(location<Container>& loc)
|
||||
}
|
||||
else
|
||||
{
|
||||
msg = val.unwrap_err();
|
||||
msg = format_underline("[error] toml::parse_key_value_pair: "
|
||||
"invalid value format", loc, val.unwrap_err());
|
||||
}
|
||||
loc.iter() = first;
|
||||
return err(msg);
|
||||
|
Reference in New Issue
Block a user