{"action":"created","issue":{"url":"https://api.github.com/repos/jayJs/jay-npm/issues/4","labels_url":"https://api.github.com/repos/jayJs/jay-npm/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/jayJs/jay-npm/issues/4/comments","events_url":"https://api.github.com/repos/jayJs/jay-npm/issues/4/events","html_url":"https://github.com/jayJs/jay-npm/issues/4","id":118560254,"number":4,"title":"PUT to report errors","user":{"login":"martinsookael","id":248973,"avatar_url":"https://avatars.githubusercontent.com/u/248973?v=3","gravatar_id":"","url":"https://api.github.com/users/martinsookael","html_url":"https://github.com/martinsookael","followers_url":"https://api.github.com/users/martinsookael/followers","following_url":"https://api.github.com/users/martinsookael/following{/other_user}","gists_url":"https://api.github.com/users/martinsookael/gists{/gist_id}","starred_url":"https://api.github.com/users/martinsookael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinsookael/subscriptions","organizations_url":"https://api.github.com/users/martinsookael/orgs","repos_url":"https://api.github.com/users/martinsookael/repos","events_url":"https://api.github.com/users/martinsookael/events{/privacy}","received_events_url":"https://api.github.com/users/martinsookael/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-24T08:53:01Z","updated_at":"2015-11-24T09:11:41Z","closed_at":null,"body":"https://github.com/jayJs/jay-npm/blob/master/lib/jay.js#L129\r\n          protectedCallback(res, callback, {error: err})\r\nwould work better perhaps:\r\n          protectedCallback(res, callback, {error: body.error})\r\n"},"comment":{"url":"https://api.github.com/repos/jayJs/jay-npm/issues/comments/159203005","html_url":"https://github.com/jayJs/jay-npm/issues/4#issuecomment-159203005","issue_url":"https://api.github.com/repos/jayJs/jay-npm/issues/4","id":159203005,"user":{"login":"martinsookael","id":248973,"avatar_url":"https://avatars.githubusercontent.com/u/248973?v=3","gravatar_id":"","url":"https://api.github.com/users/martinsookael","html_url":"https://github.com/martinsookael","followers_url":"https://api.github.com/users/martinsookael/followers","following_url":"https://api.github.com/users/martinsookael/following{/other_user}","gists_url":"https://api.github.com/users/martinsookael/gists{/gist_id}","starred_url":"https://api.github.com/users/martinsookael/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinsookael/subscriptions","organizations_url":"https://api.github.com/users/martinsookael/orgs","repos_url":"https://api.github.com/users/martinsookael/repos","events_url":"https://api.github.com/users/martinsookael/events{/privacy}","received_events_url":"https://api.github.com/users/martinsookael/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T09:11:41Z","updated_at":"2015-11-24T09:11:41Z","body":"That of course would cause this:\r\n\r\n\r\nTypeError: Cannot read property 'error' of undefined\r\n    at Object.callback (/node_modules/jay-npm/lib/jay.js:131:56)\r\n    at Request._callback (node_modules/jay-npm/node_modules/kaiseki/lib/kaiseki.js:391:12)\r\n    at self.callback (node_modules/jay-npm/node_modules/kaiseki/node_modules/request/request.js:129:22)\r\n"}}