-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more hits to the error "Error msg: bad conversion" #1274
Comments
same requirement. |
same |
It should really throw an InvalidNode exception, and name the missing key. And a linenumber would also be really helpful. (for both exceptions). yaml-cpp is not known for its speed (use rapidjson instead), but at least improve the error messages then. |
rurban
pushed a commit
to SpexAI/yaml-cpp
that referenced
this issue
Nov 1, 2024
rurban
pushed a commit
to SpexAI/yaml-cpp
that referenced
this issue
Nov 1, 2024
jbeder
pushed a commit
that referenced
this issue
Nov 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
when I try to parse an empty yaml file I got the error "Error msg: bad conversion".
Could this error message be improved a bit?
For example, if I try to get a key that is not in the yaml file, the error message could say that the key is not in the file. Also, specifying that the error comes from yaml-cpp (e.g "Error msg: bad conversion when parsing <file_name>.yaml") can be very helpful because you can easily understand from where the issue comes from. In particular when using yaml-cpp inside a big software architecture.
Thanks!
The text was updated successfully, but these errors were encountered: