You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When handling YAML parse exceptions, instead of just displaying the exception message to the user, it would be super helpful to display the line number(s) of the parse error so the user can figure out what's going on.
Context
Because of eemeli/yaml#114, my valid YAML file was failing to parse. But without specific line number information, and with everything else showing that my YAML file was fine, I had a difficult time figuring out what the problem actually was.
Line numbers in the parse error message would have been fantastic.
Possible implementation
yaml.parse() takes prettyErrors: true as an option, which includes line number information in the exception.
Your environment
Node Version: v10.15.3
Operating system and version (e.g. Ubuntu 16.04, Windows 7): MacOS
The text was updated successfully, but these errors were encountered:
Detailed description
When handling YAML parse exceptions, instead of just displaying the exception message to the user, it would be super helpful to display the line number(s) of the parse error so the user can figure out what's going on.
Context
Because of eemeli/yaml#114, my valid YAML file was failing to parse. But without specific line number information, and with everything else showing that my YAML file was fine, I had a difficult time figuring out what the problem actually was.
Line numbers in the parse error message would have been fantastic.
Possible implementation
yaml.parse()
takesprettyErrors: true
as an option, which includes line number information in the exception.Your environment
The text was updated successfully, but these errors were encountered: