{"action":"created","issue":{"url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/issues/92","labels_url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/issues/92/comments","events_url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/issues/92/events","html_url":"https://github.com/florianholzapfel/express-restify-mongoose/pull/92","id":57717126,"number":92,"title":"usingExpress permissions error handling optimization","user":{"login":"CalebMer","id":8282507,"avatar_url":"https://avatars.githubusercontent.com/u/8282507?v=3","gravatar_id":"","url":"https://api.github.com/users/CalebMer","html_url":"https://github.com/CalebMer","followers_url":"https://api.github.com/users/CalebMer/followers","following_url":"https://api.github.com/users/CalebMer/following{/other_user}","gists_url":"https://api.github.com/users/CalebMer/gists{/gist_id}","starred_url":"https://api.github.com/users/CalebMer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CalebMer/subscriptions","organizations_url":"https://api.github.com/users/CalebMer/orgs","repos_url":"https://api.github.com/users/CalebMer/repos","events_url":"https://api.github.com/users/CalebMer/events{/privacy}","received_events_url":"https://api.github.com/users/CalebMer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-15T04:13:46Z","updated_at":"2015-02-18T17:14:46Z","closed_at":"2015-02-17T09:46:36Z","pull_request":{"url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/pulls/92","html_url":"https://github.com/florianholzapfel/express-restify-mongoose/pull/92","diff_url":"https://github.com/florianholzapfel/express-restify-mongoose/pull/92.diff","patch_url":"https://github.com/florianholzapfel/express-restify-mongoose/pull/92.patch"},"body":"Since most express apps use their own error handler the response should not be defined here, but rather in the user defined error handler.\r\n\r\nI have not looked at the tests so I'm not sure whether or not this will break them."},"comment":{"url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/issues/comments/74904677","html_url":"https://github.com/florianholzapfel/express-restify-mongoose/pull/92#issuecomment-74904677","issue_url":"https://api.github.com/repos/florianholzapfel/express-restify-mongoose/issues/92","id":74904677,"user":{"login":"Zertz","id":2636763,"avatar_url":"https://avatars.githubusercontent.com/u/2636763?v=3","gravatar_id":"","url":"https://api.github.com/users/Zertz","html_url":"https://github.com/Zertz","followers_url":"https://api.github.com/users/Zertz/followers","following_url":"https://api.github.com/users/Zertz/following{/other_user}","gists_url":"https://api.github.com/users/Zertz/gists{/gist_id}","starred_url":"https://api.github.com/users/Zertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zertz/subscriptions","organizations_url":"https://api.github.com/users/Zertz/orgs","repos_url":"https://api.github.com/users/Zertz/repos","events_url":"https://api.github.com/users/Zertz/events{/privacy}","received_events_url":"https://api.github.com/users/Zertz/received_events","type":"User","site_admin":false},"created_at":"2015-02-18T17:14:46Z","updated_at":"2015-02-18T17:14:46Z","body":"While this doesn't break tests, it causes a few errors to be thrown.\r\n\r\nAs a side note, while I agree with the idea, this works on the assumption that the app has an error handler. Isn't that a dangerous default?"}}