{"action":"closed","number":9,"pull_request":{"url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/pulls/9","id":42090260,"html_url":"https://github.com/hubot-scripts/hubot-youtube/pull/9","diff_url":"https://github.com/hubot-scripts/hubot-youtube/pull/9.diff","patch_url":"https://github.com/hubot-scripts/hubot-youtube/pull/9.patch","issue_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/issues/9","number":9,"state":"closed","locked":false,"title":"Improve error logging/handling","user":{"login":"stephenyeargin","id":80459,"avatar_url":"https://avatars.githubusercontent.com/u/80459?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenyeargin","html_url":"https://github.com/stephenyeargin","followers_url":"https://api.github.com/users/stephenyeargin/followers","following_url":"https://api.github.com/users/stephenyeargin/following{/other_user}","gists_url":"https://api.github.com/users/stephenyeargin/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenyeargin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenyeargin/subscriptions","organizations_url":"https://api.github.com/users/stephenyeargin/orgs","repos_url":"https://api.github.com/users/stephenyeargin/repos","events_url":"https://api.github.com/users/stephenyeargin/events{/privacy}","received_events_url":"https://api.github.com/users/stephenyeargin/received_events","type":"User","site_admin":false},"body":"There are a handful of things that can go awry with setting up this Hubot Script Package. Unfortunately, not all of them are terribly user friendly to report on. This PR logs the errors through the normal `robot.logger.*` methods and handles some more common cases where an invalid API Key is used, the key does not have API permissions, or some other issue comes up.\n\nFixes #8\n\n/cc @jamespullar @edbury","created_at":"2015-08-11T03:48:33Z","updated_at":"2016-02-09T02:32:23Z","closed_at":"2016-02-09T02:32:23Z","merged_at":"2016-02-09T02:32:23Z","merge_commit_sha":"c50178e43a845c6988c1aa68db7113da138a5303","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/pulls/9/commits","review_comments_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/pulls/9/comments","review_comment_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/issues/9/comments","statuses_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/statuses/cb846f0feac335ed2a69c62af8001988e0f309b3","head":{"label":"hubot-scripts:8-improve-logging","ref":"8-improve-logging","sha":"cb846f0feac335ed2a69c62af8001988e0f309b3","user":{"login":"hubot-scripts","id":5367660,"avatar_url":"https://avatars.githubusercontent.com/u/5367660?v=3","gravatar_id":"","url":"https://api.github.com/users/hubot-scripts","html_url":"https://github.com/hubot-scripts","followers_url":"https://api.github.com/users/hubot-scripts/followers","following_url":"https://api.github.com/users/hubot-scripts/following{/other_user}","gists_url":"https://api.github.com/users/hubot-scripts/gists{/gist_id}","starred_url":"https://api.github.com/users/hubot-scripts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hubot-scripts/subscriptions","organizations_url":"https://api.github.com/users/hubot-scripts/orgs","repos_url":"https://api.github.com/users/hubot-scripts/repos","events_url":"https://api.github.com/users/hubot-scripts/events{/privacy}","received_events_url":"https://api.github.com/users/hubot-scripts/received_events","type":"Organization","site_admin":false},"repo":{"id":23371056,"name":"hubot-youtube","full_name":"hubot-scripts/hubot-youtube","owner":{"login":"hubot-scripts","id":5367660,"avatar_url":"https://avatars.githubusercontent.com/u/5367660?v=3","gravatar_id":"","url":"https://api.github.com/users/hubot-scripts","html_url":"https://github.com/hubot-scripts","followers_url":"https://api.github.com/users/hubot-scripts/followers","following_url":"https://api.github.com/users/hubot-scripts/following{/other_user}","gists_url":"https://api.github.com/users/hubot-scripts/gists{/gist_id}","starred_url":"https://api.github.com/users/hubot-scripts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hubot-scripts/subscriptions","organizations_url":"https://api.github.com/users/hubot-scripts/orgs","repos_url":"https://api.github.com/users/hubot-scripts/repos","events_url":"https://api.github.com/users/hubot-scripts/events{/privacy}","received_events_url":"https://api.github.com/users/hubot-scripts/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hubot-scripts/hubot-youtube","description":"A hubot script for searching YouTube","fork":false,"url":"https://api.github.com/repos/hubot-scripts/hubot-youtube","forks_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/forks","keys_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/teams","hooks_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/hooks","issue_events_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/issues/events{/number}","events_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/events","assignees_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/assignees{/user}","branches_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/branches{/branch}","tags_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/tags","blobs_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/git/refs{/sha}","trees_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/statuses/{sha}","languages_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/languages","stargazers_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/stargazers","contributors_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/contributors","subscribers_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/subscribers","subscription_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/subscription","commits_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/commits{/sha}","git_commits_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/git/commits{/sha}","comments_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/comments{/number}","issue_comment_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/issues/comments{/number}","contents_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/contents/{+path}","compare_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/merges","archive_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/downloads","issues_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/issues{/number}","pulls_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/pulls{/number}","milestones_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/milestones{/number}","notifications_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/labels{/name}","releases_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/releases{/id}","deployments_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/deployments","created_at":"2014-08-27T00:11:28Z","updated_at":"2016-01-23T08:36:48Z","pushed_at":"2016-02-09T02:32:23Z","git_url":"git://github.com/hubot-scripts/hubot-youtube.git","ssh_url":"git@github.com:hubot-scripts/hubot-youtube.git","clone_url":"https://github.com/hubot-scripts/hubot-youtube.git","svn_url":"https://github.com/hubot-scripts/hubot-youtube","homepage":null,"size":202,"stargazers_count":10,"watchers_count":10,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":1,"forks":11,"open_issues":1,"watchers":10,"default_branch":"master"}},"base":{"label":"hubot-scripts:master","ref":"master","sha":"f27f2a1ea43f7ec56a1b0070d90ef3d9fab15edf","user":{"login":"hubot-scripts","id":5367660,"avatar_url":"https://avatars.githubusercontent.com/u/5367660?v=3","gravatar_id":"","url":"https://api.github.com/users/hubot-scripts","html_url":"https://github.com/hubot-scripts","followers_url":"https://api.github.com/users/hubot-scripts/followers","following_url":"https://api.github.com/users/hubot-scripts/following{/other_user}","gists_url":"https://api.github.com/users/hubot-scripts/gists{/gist_id}","starred_url":"https://api.github.com/users/hubot-scripts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hubot-scripts/subscriptions","organizations_url":"https://api.github.com/users/hubot-scripts/orgs","repos_url":"https://api.github.com/users/hubot-scripts/repos","events_url":"https://api.github.com/users/hubot-scripts/events{/privacy}","received_events_url":"https://api.github.com/users/hubot-scripts/received_events","type":"Organization","site_admin":false},"repo":{"id":23371056,"name":"hubot-youtube","full_name":"hubot-scripts/hubot-youtube","owner":{"login":"hubot-scripts","id":5367660,"avatar_url":"https://avatars.githubusercontent.com/u/5367660?v=3","gravatar_id":"","url":"https://api.github.com/users/hubot-scripts","html_url":"https://github.com/hubot-scripts","followers_url":"https://api.github.com/users/hubot-scripts/followers","following_url":"https://api.github.com/users/hubot-scripts/following{/other_user}","gists_url":"https://api.github.com/users/hubot-scripts/gists{/gist_id}","starred_url":"https://api.github.com/users/hubot-scripts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hubot-scripts/subscriptions","organizations_url":"https://api.github.com/users/hubot-scripts/orgs","repos_url":"https://api.github.com/users/hubot-scripts/repos","events_url":"https://api.github.com/users/hubot-scripts/events{/privacy}","received_events_url":"https://api.github.com/users/hubot-scripts/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hubot-scripts/hubot-youtube","description":"A hubot script for searching YouTube","fork":false,"url":"https://api.github.com/repos/hubot-scripts/hubot-youtube","forks_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/forks","keys_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/teams","hooks_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/hooks","issue_events_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/issues/events{/number}","events_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/events","assignees_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/assignees{/user}","branches_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/branches{/branch}","tags_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/tags","blobs_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/git/refs{/sha}","trees_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/statuses/{sha}","languages_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/languages","stargazers_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/stargazers","contributors_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/contributors","subscribers_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/subscribers","subscription_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/subscription","commits_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/commits{/sha}","git_commits_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/git/commits{/sha}","comments_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/comments{/number}","issue_comment_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/issues/comments{/number}","contents_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/contents/{+path}","compare_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/merges","archive_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/downloads","issues_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/issues{/number}","pulls_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/pulls{/number}","milestones_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/milestones{/number}","notifications_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/labels{/name}","releases_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/releases{/id}","deployments_url":"https://api.github.com/repos/hubot-scripts/hubot-youtube/deployments","created_at":"2014-08-27T00:11:28Z","updated_at":"2016-01-23T08:36:48Z","pushed_at":"2016-02-09T02:32:23Z","git_url":"git://github.com/hubot-scripts/hubot-youtube.git","ssh_url":"git@github.com:hubot-scripts/hubot-youtube.git","clone_url":"https://github.com/hubot-scripts/hubot-youtube.git","svn_url":"https://github.com/hubot-scripts/hubot-youtube","homepage":null,"size":202,"stargazers_count":10,"watchers_count":10,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":1,"forks":11,"open_issues":1,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hubot-scripts/hubot-youtube/pulls/9"},"html":{"href":"https://github.com/hubot-scripts/hubot-youtube/pull/9"},"issue":{"href":"https://api.github.com/repos/hubot-scripts/hubot-youtube/issues/9"},"comments":{"href":"https://api.github.com/repos/hubot-scripts/hubot-youtube/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/hubot-scripts/hubot-youtube/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/hubot-scripts/hubot-youtube/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hubot-scripts/hubot-youtube/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/hubot-scripts/hubot-youtube/statuses/cb846f0feac335ed2a69c62af8001988e0f309b3"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"stephenyeargin","id":80459,"avatar_url":"https://avatars.githubusercontent.com/u/80459?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenyeargin","html_url":"https://github.com/stephenyeargin","followers_url":"https://api.github.com/users/stephenyeargin/followers","following_url":"https://api.github.com/users/stephenyeargin/following{/other_user}","gists_url":"https://api.github.com/users/stephenyeargin/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenyeargin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenyeargin/subscriptions","organizations_url":"https://api.github.com/users/stephenyeargin/orgs","repos_url":"https://api.github.com/users/stephenyeargin/repos","events_url":"https://api.github.com/users/stephenyeargin/events{/privacy}","received_events_url":"https://api.github.com/users/stephenyeargin/received_events","type":"User","site_admin":false},"comments":1,"review_comments":4,"commits":2,"additions":19,"deletions":4,"changed_files":1}}