Skip to content

Be more informative when parsing broken YAML #30

Description

@melezhik

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions