Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
YAML Config error messages are pretty bad #168
The error messages you get from a project using the YAML config parser, like a scaffolded yesod project, are pretty bad. There isn't much indication of what caused the problem at all. For example, today I had some config like this:
slack: api-token: "_env:SLACK_API_TOKEN:1234"
And I removed 1234 because I didn't want to send Slack messages from my localhost after I was done testing. But that caused this error:
Which doesn't give any indication of what it was trying to parse. I actually thought it was a different field for 10 minutes or so.
Edit: sorry, posted before I was finished writing.
Hm, I'm still getting bad error messages. I did this: