mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-09-18 10:28:09 +08:00
fix error message: add missing spaces
This commit is contained in:
@@ -1035,9 +1035,9 @@ insert_nested_key(table& root, const toml::value& v,
|
|||||||
"[error] toml::insert_value: array of table (\"",
|
"[error] toml::insert_value: array of table (\"",
|
||||||
format_dotted_keys(first, last), "\") collides with"
|
format_dotted_keys(first, last), "\") collides with"
|
||||||
" existing value"), get_region(tab->at(k)),
|
" existing value"), get_region(tab->at(k)),
|
||||||
concat_to_string("this ", tab->at(k).type(), "value"
|
concat_to_string("this ", tab->at(k).type(),
|
||||||
"already exists"), get_region(v), "while inserting"
|
" value already exists"), get_region(v),
|
||||||
"this array-of-tables"));
|
"while inserting this array-of-tables"));
|
||||||
}
|
}
|
||||||
array& a = tab->at(k).template cast<toml::value_t::Array>();
|
array& a = tab->at(k).template cast<toml::value_t::Array>();
|
||||||
if(!(a.front().is(value_t::Table)))
|
if(!(a.front().is(value_t::Table)))
|
||||||
@@ -1046,9 +1046,9 @@ insert_nested_key(table& root, const toml::value& v,
|
|||||||
"[error] toml::insert_value: array of table (\"",
|
"[error] toml::insert_value: array of table (\"",
|
||||||
format_dotted_keys(first, last), "\") collides with"
|
format_dotted_keys(first, last), "\") collides with"
|
||||||
" existing value"), get_region(tab->at(k)),
|
" existing value"), get_region(tab->at(k)),
|
||||||
concat_to_string("this ", tab->at(k).type(), "value"
|
concat_to_string("this ", tab->at(k).type(),
|
||||||
"already exists"), get_region(v), "while inserting"
|
" value already exists"), get_region(v),
|
||||||
"this array-of-tables"));
|
"while inserting this array-of-tables"));
|
||||||
}
|
}
|
||||||
a.push_back(v);
|
a.push_back(v);
|
||||||
return ok(true);
|
return ok(true);
|
||||||
|
Reference in New Issue
Block a user