{"action":"created","issue":{"url":"https://api.github.com/repos/stubailo/meteor-rest/issues/26","labels_url":"https://api.github.com/repos/stubailo/meteor-rest/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/stubailo/meteor-rest/issues/26/comments","events_url":"https://api.github.com/repos/stubailo/meteor-rest/issues/26/events","html_url":"https://github.com/stubailo/meteor-rest/pull/26","id":79655007,"number":26,"title":"Better error handling","user":{"login":"aldeed","id":3012067,"avatar_url":"https://avatars.githubusercontent.com/u/3012067?v=3","gravatar_id":"","url":"https://api.github.com/users/aldeed","html_url":"https://github.com/aldeed","followers_url":"https://api.github.com/users/aldeed/followers","following_url":"https://api.github.com/users/aldeed/following{/other_user}","gists_url":"https://api.github.com/users/aldeed/gists{/gist_id}","starred_url":"https://api.github.com/users/aldeed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aldeed/subscriptions","organizations_url":"https://api.github.com/users/aldeed/orgs","repos_url":"https://api.github.com/users/aldeed/repos","events_url":"https://api.github.com/users/aldeed/events{/privacy}","received_events_url":"https://api.github.com/users/aldeed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-22T23:37:38Z","updated_at":"2015-05-25T19:04:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/stubailo/meteor-rest/pulls/26","html_url":"https://github.com/stubailo/meteor-rest/pull/26","diff_url":"https://github.com/stubailo/meteor-rest/pull/26.diff","patch_url":"https://github.com/stubailo/meteor-rest/pull/26.patch"},"body":"- Add ability for `data` argument of `sendResult` to be an `Error`\r\n- Catch handler errors and automatically send a response. Look for `statusCode` and `jsonResponse` properties on thrown errors.\r\n- Add `this.setStatusCode` in methods\r\n\r\nFixes https://github.com/stubailo/meteor-rest/issues/17"},"comment":{"url":"https://api.github.com/repos/stubailo/meteor-rest/issues/comments/105289751","html_url":"https://github.com/stubailo/meteor-rest/pull/26#issuecomment-105289751","issue_url":"https://api.github.com/repos/stubailo/meteor-rest/issues/26","id":105289751,"user":{"login":"stubailo","id":448783,"avatar_url":"https://avatars.githubusercontent.com/u/448783?v=3","gravatar_id":"","url":"https://api.github.com/users/stubailo","html_url":"https://github.com/stubailo","followers_url":"https://api.github.com/users/stubailo/followers","following_url":"https://api.github.com/users/stubailo/following{/other_user}","gists_url":"https://api.github.com/users/stubailo/gists{/gist_id}","starred_url":"https://api.github.com/users/stubailo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stubailo/subscriptions","organizations_url":"https://api.github.com/users/stubailo/orgs","repos_url":"https://api.github.com/users/stubailo/repos","events_url":"https://api.github.com/users/stubailo/events{/privacy}","received_events_url":"https://api.github.com/users/stubailo/received_events","type":"User","site_admin":false},"created_at":"2015-05-25T19:04:36Z","updated_at":"2015-05-25T19:04:36Z","body":"@aldeed Thanks, I'll take a look in more detail tomorrow."}}