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

sjakobi opened this Issue Jul 15, 2016 · 2 comments


None yet
3 participants

sjakobi commented Jul 15, 2016

~/t/yaml-error $ cat stack.yaml 
resolver: lts-6.7
  - location: git:
~/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}}))

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


This comment has been minimized.


WillSewell commented Oct 27, 2016

This can be closed right due to #2388 right?


This comment has been minimized.


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