Commit 41235831 authored by Jesse Beder's avatar Jesse Beder
Browse files

Fixed end seq/map error msg

parent 2c2b7883
...@@ -155,8 +155,12 @@ namespace YAML ...@@ -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
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment