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

Improve error messages for yaml parse errors #2374

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

Improve error messages for yaml parse errors #2374

sjakobi opened this issue Jul 15, 2016 · 2 comments

Comments

@sjakobi
Copy link
Member

@sjakobi 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
Copy link
Contributor

@WillSewell WillSewell commented Oct 27, 2016

This can be closed right due to #2388 right?

@mgsloan
Copy link
Contributor

@mgsloan 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants