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
9969ff51
Commit
9969ff51
authored
Nov 18, 2008
by
Jesse Beder
Browse files
Added line/column data for nodes so they can give better invalid scalar exceptions.
parent
14cdec77
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
yaml-reader/main.cpp
yaml-reader/main.cpp
+2
-2
No files found.
yaml-reader/main.cpp
View file @
9969ff51
...
...
@@ -16,8 +16,8 @@ void run()
doc
[
i
]
>>
value
;
std
::
cout
<<
(
value
?
"true"
:
"false"
)
<<
"
\n
"
;
}
}
catch
(
YAML
::
Exception
&
)
{
std
::
cout
<<
"Error
parsing the yaml!
\n
"
;
}
catch
(
YAML
::
Exception
&
e
)
{
std
::
cout
<<
"Error
at line "
<<
e
.
line
+
1
<<
", col "
<<
e
.
column
+
1
<<
": "
<<
e
.
msg
<<
"
\n
"
;
}
}
...
...
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