mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
Fixed end seq/map error msg
This commit is contained in:
@@ -155,8 +155,12 @@ namespace YAML
|
|||||||
|
|
||||||
void EmitterState::EndedGroup(GroupType::value type)
|
void EmitterState::EndedGroup(GroupType::value type)
|
||||||
{
|
{
|
||||||
if(m_groups.empty())
|
if(m_groups.empty()) {
|
||||||
return SetError(ErrorMsg::UNMATCHED_GROUP_TAG);
|
if(type == GroupType::Seq)
|
||||||
|
return SetError(ErrorMsg::UNEXPECTED_END_SEQ);
|
||||||
|
else
|
||||||
|
return SetError(ErrorMsg::UNEXPECTED_END_MAP);
|
||||||
|
}
|
||||||
|
|
||||||
// get rid of the current group
|
// get rid of the current group
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user