mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 02:08:09 +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
|
else
|
||||||
{
|
{
|
||||||
msg = val.unwrap_err();
|
msg = format_underline("[error] toml::parse_key_value_pair: "
|
||||||
|
"invalid value format", loc, val.unwrap_err());
|
||||||
}
|
}
|
||||||
loc.iter() = first;
|
loc.iter() = first;
|
||||||
return err(msg);
|
return err(msg);
|
||||||
|
Reference in New Issue
Block a user