{"action":"created","issue":{"url":"https://api.github.com/repos/groundwater/nodejs-symposiums/issues/5","repository_url":"https://api.github.com/repos/groundwater/nodejs-symposiums","labels_url":"https://api.github.com/repos/groundwater/nodejs-symposiums/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/groundwater/nodejs-symposiums/issues/5/comments","events_url":"https://api.github.com/repos/groundwater/nodejs-symposiums/issues/5/events","html_url":"https://github.com/groundwater/nodejs-symposiums/pull/5","id":132303636,"number":5,"title":"Update README.md","user":{"login":"groundwater","id":538488,"avatar_url":"https://avatars.githubusercontent.com/u/538488?v=3","gravatar_id":"","url":"https://api.github.com/users/groundwater","html_url":"https://github.com/groundwater","followers_url":"https://api.github.com/users/groundwater/followers","following_url":"https://api.github.com/users/groundwater/following{/other_user}","gists_url":"https://api.github.com/users/groundwater/gists{/gist_id}","starred_url":"https://api.github.com/users/groundwater/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groundwater/subscriptions","organizations_url":"https://api.github.com/users/groundwater/orgs","repos_url":"https://api.github.com/users/groundwater/repos","events_url":"https://api.github.com/users/groundwater/events{/privacy}","received_events_url":"https://api.github.com/users/groundwater/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":60,"created_at":"2016-02-09T01:09:33Z","updated_at":"2016-02-10T09:38:08Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/groundwater/nodejs-symposiums/pulls/5","html_url":"https://github.com/groundwater/nodejs-symposiums/pull/5","diff_url":"https://github.com/groundwater/nodejs-symposiums/pull/5.diff","patch_url":"https://github.com/groundwater/nodejs-symposiums/pull/5.patch"},"body":"Hey @chrisdickinson here's a first draft. Let me know what you think."},"comment":{"url":"https://api.github.com/repos/groundwater/nodejs-symposiums/issues/comments/182278717","html_url":"https://github.com/groundwater/nodejs-symposiums/pull/5#issuecomment-182278717","issue_url":"https://api.github.com/repos/groundwater/nodejs-symposiums/issues/5","id":182278717,"user":{"login":"benjamingr","id":1315533,"avatar_url":"https://avatars.githubusercontent.com/u/1315533?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamingr","html_url":"https://github.com/benjamingr","followers_url":"https://api.github.com/users/benjamingr/followers","following_url":"https://api.github.com/users/benjamingr/following{/other_user}","gists_url":"https://api.github.com/users/benjamingr/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamingr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamingr/subscriptions","organizations_url":"https://api.github.com/users/benjamingr/orgs","repos_url":"https://api.github.com/users/benjamingr/repos","events_url":"https://api.github.com/users/benjamingr/events{/privacy}","received_events_url":"https://api.github.com/users/benjamingr/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T09:38:08Z","updated_at":"2016-02-10T09:38:08Z","body":"@chrisdickinson\r\n\r\nThis feels like rolling our own control flow. While we're there we might as well just have:\r\n\r\n```js\r\nfs.readFilePromise('dne').catch(ENOENT, err => { \r\n    // only handle ENOENT here, other errors propagate\r\n});\r\n```\r\n\r\nWhich is cleaner and would mean subclassing `Promise` for the API wrapper. We can have the first argument in our subclass accept a predicate where `ENOENT` is `e => e.code === 'ENOENT` and is imported. \r\n\r\nHeck, we could even warn if the user adds a plain `.catch` to our promise subclass :P \r\n\r\n"}}