Skip to content
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

Be more informative when parsing broken YAML #30

Open
melezhik opened this issue Sep 26, 2019 · 1 comment
Open

Be more informative when parsing broken YAML #30

melezhik opened this issue Sep 26, 2019 · 1 comment

Comments

@melezhik
Copy link

melezhik commented Sep 26, 2019

Not it's just:

$ cat foo.yml

foo: 1
a
b: 2

$ perl6 -MYAMLish -e 'load-yaml(q{foo.yml}.IO.slurp)'
Couldn't parse YAML
  in sub load-yaml at C:\rakudo\share\perl6\site\sources\ADB31520994572F18CE4EC4457E5E9321A31301C (YAMLish) line 951
  in block <unit> at -e line 1

I wish I had more info to troubleshoot. At least a line and column number where broken syntax appears.

@Leont
Copy link
Owner

Leont commented Oct 12, 2019

Can't argue with this. It's probably not easy to solve though :-/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants