Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
41235831
Commit
41235831
authored
May 22, 2012
by
Jesse Beder
Browse files
Fixed end seq/map error msg
parent
2c2b7883
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
src/emitterstate.cpp
src/emitterstate.cpp
+6
-2
No files found.
src/emitterstate.cpp
View file @
41235831
...
@@ -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
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment