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

Improve error messages for yaml parse errors #2374

Closed
sjakobi opened this Issue Jul 15, 2016 · 2 comments

Comments

Projects
None yet
3 participants
@sjakobi
Contributor

sjakobi commented Jul 15, 2016

~/t/yaml-error $ cat stack.yaml 
resolver: lts-6.7
packages:
  - location: git: https://github.com/commercialhaskell/stack
~/t/yaml-error $ stack build
Could not parse '/home/simon/test/yaml-error/stack.yaml':
InvalidYaml (Just (YamlParseException {yamlProblem = "mapping values are not allowed in this context", yamlContext = "", yamlProblemMark = YamlMark {yamlIndex = 45, yamlLine = 2, yamlColumn = 17}}))
See http://docs.haskellstack.org/en/stable/yaml_configuration/.

At least we could use yaml's prettyPrintParseException to format the exception more nicely.

@WillSewell

This comment has been minimized.

Contributor

WillSewell commented Oct 27, 2016

This can be closed right due to #2388 right?

@mgsloan

This comment has been minimized.

Collaborator

mgsloan commented Oct 27, 2016

I believe so, closing!

@mgsloan mgsloan closed this Oct 27, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment