{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/269","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/269/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/269/events","html_url":"https://github.com/commercialhaskell/stack/issues/269","id":87171735,"number":269,"title":"Improve config file parsing error messages","user":{"login":"manny-fp","id":2164261,"avatar_url":"https://avatars.githubusercontent.com/u/2164261?v=3","gravatar_id":"","url":"https://api.github.com/users/manny-fp","html_url":"https://github.com/manny-fp","followers_url":"https://api.github.com/users/manny-fp/followers","following_url":"https://api.github.com/users/manny-fp/following{/other_user}","gists_url":"https://api.github.com/users/manny-fp/gists{/gist_id}","starred_url":"https://api.github.com/users/manny-fp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manny-fp/subscriptions","organizations_url":"https://api.github.com/users/manny-fp/orgs","repos_url":"https://api.github.com/users/manny-fp/repos","events_url":"https://api.github.com/users/manny-fp/events{/privacy}","received_events_url":"https://api.github.com/users/manny-fp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/commercialhaskell/stack/labels/newcomer","name":"newcomer","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/commercialhaskell/stack/milestones/4","html_url":"https://github.com/commercialhaskell/stack/milestones/First%20stable%20release%20(0.1.0.0?)","labels_url":"https://api.github.com/repos/commercialhaskell/stack/milestones/4/labels","id":1142961,"number":4,"title":"First stable release (0.1.0.0?)","description":"","creator":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars.githubusercontent.com/u/49415?v=3","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"open_issues":50,"closed_issues":36,"state":"open","created_at":"2015-06-01T13:52:26Z","updated_at":"2015-06-11T19:49:19Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-06-11T01:48:00Z","updated_at":"2015-06-12T00:02:34Z","closed_at":null,"body":"For example, if I put `install-ghc: 123` in a stack.yaml, I get this not very informative error:\r\n\r\n```\r\n$ stack exec true\r\nAesonException \"when expecting a Bool, encountered Number instead\"\r\n```\r\n\r\nWe should at least catch AesonExceptions when parsing the config files and wrap them in our own \"ConfigParseFailedException\" (or something like that), and include the path to the config file where the failure occurred in the message.  If there was a way to get Aeson to report the field with the error that would be even better (I don't know if that's possible though).\r\n"},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/111309729","html_url":"https://github.com/commercialhaskell/stack/issues/269#issuecomment-111309729","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/269","id":111309729,"user":{"login":"gregwebs","id":1183,"avatar_url":"https://avatars.githubusercontent.com/u/1183?v=3","gravatar_id":"","url":"https://api.github.com/users/gregwebs","html_url":"https://github.com/gregwebs","followers_url":"https://api.github.com/users/gregwebs/followers","following_url":"https://api.github.com/users/gregwebs/following{/other_user}","gists_url":"https://api.github.com/users/gregwebs/gists{/gist_id}","starred_url":"https://api.github.com/users/gregwebs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gregwebs/subscriptions","organizations_url":"https://api.github.com/users/gregwebs/orgs","repos_url":"https://api.github.com/users/gregwebs/repos","events_url":"https://api.github.com/users/gregwebs/events{/privacy}","received_events_url":"https://api.github.com/users/gregwebs/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T00:02:34Z","updated_at":"2015-06-12T00:02:34Z","body":"Addressed by #284. Here is the output I get from that.\r\n\r\n```\r\nAesonException \"failed to parse field install-ghc: when expecting a Bool, encountered Number instead\"\r\n```\r\n\r\nIncluding both the path to the config file and a link to the wiki documentation of the YAML config should be done, but perhaps a separate issue can be opened for that?"}}