{"action":"created","comment":{"url":"https://api.github.com/repos/donasaur/madmimi/pulls/comments/38128600","id":38128600,"diff_hunk":"@@ -68,13 +68,14 @@ MadMimi.prototype.request = function (method, route, data, done) {\n       uri: uri,\n       statusCode: statusCode,\n       fields: reqOpts.body || reqOpts.form,\n-      err: err,\n-      body: body\n+      username: self.username,\n+      password: self.key,\n+      err: JSON.stringify(err),\n+      body: JSON.stringify(body)\n     });\n \n-    if (err || statusCode !== 200) {\n-      done(errbot.initialize(statusCode, err || res.body));\n-      return;\n+    if (err || statusCode >= 400) {","path":"lib/index.js","position":42,"original_position":42,"commit_id":"6d6051946d80e48265c826e849cf6cabe5f8d9e7","original_commit_id":"6d6051946d80e48265c826e849cf6cabe5f8d9e7","user":{"login":"indexzero","id":4624,"avatar_url":"https://avatars.githubusercontent.com/u/4624?v=3","gravatar_id":"","url":"https://api.github.com/users/indexzero","html_url":"https://github.com/indexzero","followers_url":"https://api.github.com/users/indexzero/followers","following_url":"https://api.github.com/users/indexzero/following{/other_user}","gists_url":"https://api.github.com/users/indexzero/gists{/gist_id}","starred_url":"https://api.github.com/users/indexzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/indexzero/subscriptions","organizations_url":"https://api.github.com/users/indexzero/orgs","repos_url":"https://api.github.com/users/indexzero/repos","events_url":"https://api.github.com/users/indexzero/events{/privacy}","received_events_url":"https://api.github.com/users/indexzero/received_events","type":"User","site_admin":false},"body":"``` js\r\nif (err || statusCode >= 400 || statusCode < 200) {\r\n```","created_at":"2015-08-27T18:22:34Z","updated_at":"2015-08-27T18:22:34Z","html_url":"https://github.com/donasaur/madmimi/pull/8#discussion_r38128600","pull_request_url":"https://api.github.com/repos/donasaur/madmimi/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/donasaur/madmimi/pulls/comments/38128600"},"html":{"href":"https://github.com/donasaur/madmimi/pull/8#discussion_r38128600"},"pull_request":{"href":"https://api.github.com/repos/donasaur/madmimi/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/donasaur/madmimi/pulls/8","id":43489561,"html_url":"https://github.com/donasaur/madmimi/pull/8","diff_url":"https://github.com/donasaur/madmimi/pull/8.diff","patch_url":"https://github.com/donasaur/madmimi/pull/8.patch","issue_url":"https://api.github.com/repos/donasaur/madmimi/issues/8","number":8,"state":"open","locked":false,"title":"Changes to allow for better error reporting","user":{"login":"donasaur","id":4912465,"avatar_url":"https://avatars.githubusercontent.com/u/4912465?v=3","gravatar_id":"","url":"https://api.github.com/users/donasaur","html_url":"https://github.com/donasaur","followers_url":"https://api.github.com/users/donasaur/followers","following_url":"https://api.github.com/users/donasaur/following{/other_user}","gists_url":"https://api.github.com/users/donasaur/gists{/gist_id}","starred_url":"https://api.github.com/users/donasaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donasaur/subscriptions","organizations_url":"https://api.github.com/users/donasaur/orgs","repos_url":"https://api.github.com/users/donasaur/repos","events_url":"https://api.github.com/users/donasaur/events{/privacy}","received_events_url":"https://api.github.com/users/donasaur/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-27T08:07:30Z","updated_at":"2015-08-27T18:22:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c5f23bfbb9504748f3fa4403f4eff17c992bb665","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/donasaur/madmimi/pulls/8/commits","review_comments_url":"https://api.github.com/repos/donasaur/madmimi/pulls/8/comments","review_comment_url":"https://api.github.com/repos/donasaur/madmimi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/donasaur/madmimi/issues/8/comments","statuses_url":"https://api.github.com/repos/donasaur/madmimi/statuses/6d6051946d80e48265c826e849cf6cabe5f8d9e7","head":{"label":"donasaur:gen-id-support","ref":"gen-id-support","sha":"6d6051946d80e48265c826e849cf6cabe5f8d9e7","user":{"login":"donasaur","id":4912465,"avatar_url":"https://avatars.githubusercontent.com/u/4912465?v=3","gravatar_id":"","url":"https://api.github.com/users/donasaur","html_url":"https://github.com/donasaur","followers_url":"https://api.github.com/users/donasaur/followers","following_url":"https://api.github.com/users/donasaur/following{/other_user}","gists_url":"https://api.github.com/users/donasaur/gists{/gist_id}","starred_url":"https://api.github.com/users/donasaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donasaur/subscriptions","organizations_url":"https://api.github.com/users/donasaur/orgs","repos_url":"https://api.github.com/users/donasaur/repos","events_url":"https://api.github.com/users/donasaur/events{/privacy}","received_events_url":"https://api.github.com/users/donasaur/received_events","type":"User","site_admin":false},"repo":{"id":31688016,"name":"madmimi","full_name":"donasaur/madmimi","owner":{"login":"donasaur","id":4912465,"avatar_url":"https://avatars.githubusercontent.com/u/4912465?v=3","gravatar_id":"","url":"https://api.github.com/users/donasaur","html_url":"https://github.com/donasaur","followers_url":"https://api.github.com/users/donasaur/followers","following_url":"https://api.github.com/users/donasaur/following{/other_user}","gists_url":"https://api.github.com/users/donasaur/gists{/gist_id}","starred_url":"https://api.github.com/users/donasaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donasaur/subscriptions","organizations_url":"https://api.github.com/users/donasaur/orgs","repos_url":"https://api.github.com/users/donasaur/repos","events_url":"https://api.github.com/users/donasaur/events{/privacy}","received_events_url":"https://api.github.com/users/donasaur/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/donasaur/madmimi","description":"A new, standards-compliant wrapper for the Mad Mimi API.","fork":true,"url":"https://api.github.com/repos/donasaur/madmimi","forks_url":"https://api.github.com/repos/donasaur/madmimi/forks","keys_url":"https://api.github.com/repos/donasaur/madmimi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/donasaur/madmimi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/donasaur/madmimi/teams","hooks_url":"https://api.github.com/repos/donasaur/madmimi/hooks","issue_events_url":"https://api.github.com/repos/donasaur/madmimi/issues/events{/number}","events_url":"https://api.github.com/repos/donasaur/madmimi/events","assignees_url":"https://api.github.com/repos/donasaur/madmimi/assignees{/user}","branches_url":"https://api.github.com/repos/donasaur/madmimi/branches{/branch}","tags_url":"https://api.github.com/repos/donasaur/madmimi/tags","blobs_url":"https://api.github.com/repos/donasaur/madmimi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/donasaur/madmimi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/donasaur/madmimi/git/refs{/sha}","trees_url":"https://api.github.com/repos/donasaur/madmimi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/donasaur/madmimi/statuses/{sha}","languages_url":"https://api.github.com/repos/donasaur/madmimi/languages","stargazers_url":"https://api.github.com/repos/donasaur/madmimi/stargazers","contributors_url":"https://api.github.com/repos/donasaur/madmimi/contributors","subscribers_url":"https://api.github.com/repos/donasaur/madmimi/subscribers","subscription_url":"https://api.github.com/repos/donasaur/madmimi/subscription","commits_url":"https://api.github.com/repos/donasaur/madmimi/commits{/sha}","git_commits_url":"https://api.github.com/repos/donasaur/madmimi/git/commits{/sha}","comments_url":"https://api.github.com/repos/donasaur/madmimi/comments{/number}","issue_comment_url":"https://api.github.com/repos/donasaur/madmimi/issues/comments{/number}","contents_url":"https://api.github.com/repos/donasaur/madmimi/contents/{+path}","compare_url":"https://api.github.com/repos/donasaur/madmimi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/donasaur/madmimi/merges","archive_url":"https://api.github.com/repos/donasaur/madmimi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/donasaur/madmimi/downloads","issues_url":"https://api.github.com/repos/donasaur/madmimi/issues{/number}","pulls_url":"https://api.github.com/repos/donasaur/madmimi/pulls{/number}","milestones_url":"https://api.github.com/repos/donasaur/madmimi/milestones{/number}","notifications_url":"https://api.github.com/repos/donasaur/madmimi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/donasaur/madmimi/labels{/name}","releases_url":"https://api.github.com/repos/donasaur/madmimi/releases{/id}","created_at":"2015-03-05T00:46:41Z","updated_at":"2015-04-23T23:50:46Z","pushed_at":"2015-08-27T08:07:30Z","git_url":"git://github.com/donasaur/madmimi.git","ssh_url":"git@github.com:donasaur/madmimi.git","clone_url":"https://github.com/donasaur/madmimi.git","svn_url":"https://github.com/donasaur/madmimi","homepage":"http://madmimi.com/developer","size":236,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"donasaur:master","ref":"master","sha":"d3bbe3a56997c40aedc7e958b63306f8620c6def","user":{"login":"donasaur","id":4912465,"avatar_url":"https://avatars.githubusercontent.com/u/4912465?v=3","gravatar_id":"","url":"https://api.github.com/users/donasaur","html_url":"https://github.com/donasaur","followers_url":"https://api.github.com/users/donasaur/followers","following_url":"https://api.github.com/users/donasaur/following{/other_user}","gists_url":"https://api.github.com/users/donasaur/gists{/gist_id}","starred_url":"https://api.github.com/users/donasaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donasaur/subscriptions","organizations_url":"https://api.github.com/users/donasaur/orgs","repos_url":"https://api.github.com/users/donasaur/repos","events_url":"https://api.github.com/users/donasaur/events{/privacy}","received_events_url":"https://api.github.com/users/donasaur/received_events","type":"User","site_admin":false},"repo":{"id":31688016,"name":"madmimi","full_name":"donasaur/madmimi","owner":{"login":"donasaur","id":4912465,"avatar_url":"https://avatars.githubusercontent.com/u/4912465?v=3","gravatar_id":"","url":"https://api.github.com/users/donasaur","html_url":"https://github.com/donasaur","followers_url":"https://api.github.com/users/donasaur/followers","following_url":"https://api.github.com/users/donasaur/following{/other_user}","gists_url":"https://api.github.com/users/donasaur/gists{/gist_id}","starred_url":"https://api.github.com/users/donasaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donasaur/subscriptions","organizations_url":"https://api.github.com/users/donasaur/orgs","repos_url":"https://api.github.com/users/donasaur/repos","events_url":"https://api.github.com/users/donasaur/events{/privacy}","received_events_url":"https://api.github.com/users/donasaur/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/donasaur/madmimi","description":"A new, standards-compliant wrapper for the Mad Mimi API.","fork":true,"url":"https://api.github.com/repos/donasaur/madmimi","forks_url":"https://api.github.com/repos/donasaur/madmimi/forks","keys_url":"https://api.github.com/repos/donasaur/madmimi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/donasaur/madmimi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/donasaur/madmimi/teams","hooks_url":"https://api.github.com/repos/donasaur/madmimi/hooks","issue_events_url":"https://api.github.com/repos/donasaur/madmimi/issues/events{/number}","events_url":"https://api.github.com/repos/donasaur/madmimi/events","assignees_url":"https://api.github.com/repos/donasaur/madmimi/assignees{/user}","branches_url":"https://api.github.com/repos/donasaur/madmimi/branches{/branch}","tags_url":"https://api.github.com/repos/donasaur/madmimi/tags","blobs_url":"https://api.github.com/repos/donasaur/madmimi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/donasaur/madmimi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/donasaur/madmimi/git/refs{/sha}","trees_url":"https://api.github.com/repos/donasaur/madmimi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/donasaur/madmimi/statuses/{sha}","languages_url":"https://api.github.com/repos/donasaur/madmimi/languages","stargazers_url":"https://api.github.com/repos/donasaur/madmimi/stargazers","contributors_url":"https://api.github.com/repos/donasaur/madmimi/contributors","subscribers_url":"https://api.github.com/repos/donasaur/madmimi/subscribers","subscription_url":"https://api.github.com/repos/donasaur/madmimi/subscription","commits_url":"https://api.github.com/repos/donasaur/madmimi/commits{/sha}","git_commits_url":"https://api.github.com/repos/donasaur/madmimi/git/commits{/sha}","comments_url":"https://api.github.com/repos/donasaur/madmimi/comments{/number}","issue_comment_url":"https://api.github.com/repos/donasaur/madmimi/issues/comments{/number}","contents_url":"https://api.github.com/repos/donasaur/madmimi/contents/{+path}","compare_url":"https://api.github.com/repos/donasaur/madmimi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/donasaur/madmimi/merges","archive_url":"https://api.github.com/repos/donasaur/madmimi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/donasaur/madmimi/downloads","issues_url":"https://api.github.com/repos/donasaur/madmimi/issues{/number}","pulls_url":"https://api.github.com/repos/donasaur/madmimi/pulls{/number}","milestones_url":"https://api.github.com/repos/donasaur/madmimi/milestones{/number}","notifications_url":"https://api.github.com/repos/donasaur/madmimi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/donasaur/madmimi/labels{/name}","releases_url":"https://api.github.com/repos/donasaur/madmimi/releases{/id}","created_at":"2015-03-05T00:46:41Z","updated_at":"2015-04-23T23:50:46Z","pushed_at":"2015-08-27T08:07:30Z","git_url":"git://github.com/donasaur/madmimi.git","ssh_url":"git@github.com:donasaur/madmimi.git","clone_url":"https://github.com/donasaur/madmimi.git","svn_url":"https://github.com/donasaur/madmimi","homepage":"http://madmimi.com/developer","size":236,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/donasaur/madmimi/pulls/8"},"html":{"href":"https://github.com/donasaur/madmimi/pull/8"},"issue":{"href":"https://api.github.com/repos/donasaur/madmimi/issues/8"},"comments":{"href":"https://api.github.com/repos/donasaur/madmimi/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/donasaur/madmimi/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/donasaur/madmimi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/donasaur/madmimi/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/donasaur/madmimi/statuses/6d6051946d80e48265c826e849cf6cabe5f8d9e7"}}}}