{"action":"closed","number":1647,"pull_request":{"url":"https://api.github.com/repos/casperjs/casperjs/pulls/1647","id":77520039,"html_url":"https://github.com/casperjs/casperjs/pull/1647","diff_url":"https://github.com/casperjs/casperjs/pull/1647.diff","patch_url":"https://github.com/casperjs/casperjs/pull/1647.patch","issue_url":"https://api.github.com/repos/casperjs/casperjs/issues/1647","number":1647,"state":"closed","locked":false,"title":"Downloaded.error emit","user":{"login":"TheGrandPackard","id":447893,"avatar_url":"https://avatars.githubusercontent.com/u/447893?v=3","gravatar_id":"","url":"https://api.github.com/users/TheGrandPackard","html_url":"https://github.com/TheGrandPackard","followers_url":"https://api.github.com/users/TheGrandPackard/followers","following_url":"https://api.github.com/users/TheGrandPackard/following{/other_user}","gists_url":"https://api.github.com/users/TheGrandPackard/gists{/gist_id}","starred_url":"https://api.github.com/users/TheGrandPackard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheGrandPackard/subscriptions","organizations_url":"https://api.github.com/users/TheGrandPackard/orgs","repos_url":"https://api.github.com/users/TheGrandPackard/repos","events_url":"https://api.github.com/users/TheGrandPackard/events{/privacy}","received_events_url":"https://api.github.com/users/TheGrandPackard/received_events","type":"User","site_admin":false},"body":"In writing a program that will download files, I found it very useful to listen for the downloaded.file event, but had no way to test for the download failing. I added a new custom event for an error so that i can listen to it.\r\n\r\nI also added an entry for the docs so that other users can use it.","created_at":"2016-07-14T20:27:07Z","updated_at":"2016-07-14T21:50:27Z","closed_at":"2016-07-14T21:50:27Z","merged_at":"2016-07-14T21:50:27Z","merge_commit_sha":"b470b9dfb24906077d3f3ea4a3c466b4106a0d4c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/casperjs/casperjs/pulls/1647/commits","review_comments_url":"https://api.github.com/repos/casperjs/casperjs/pulls/1647/comments","review_comment_url":"https://api.github.com/repos/casperjs/casperjs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/casperjs/casperjs/issues/1647/comments","statuses_url":"https://api.github.com/repos/casperjs/casperjs/statuses/8171c2149a5112b234629ca95feb193016e76cd1","head":{"label":"TheGrandPackard:downloaded.error-emit","ref":"downloaded.error-emit","sha":"8171c2149a5112b234629ca95feb193016e76cd1","user":{"login":"TheGrandPackard","id":447893,"avatar_url":"https://avatars.githubusercontent.com/u/447893?v=3","gravatar_id":"","url":"https://api.github.com/users/TheGrandPackard","html_url":"https://github.com/TheGrandPackard","followers_url":"https://api.github.com/users/TheGrandPackard/followers","following_url":"https://api.github.com/users/TheGrandPackard/following{/other_user}","gists_url":"https://api.github.com/users/TheGrandPackard/gists{/gist_id}","starred_url":"https://api.github.com/users/TheGrandPackard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheGrandPackard/subscriptions","organizations_url":"https://api.github.com/users/TheGrandPackard/orgs","repos_url":"https://api.github.com/users/TheGrandPackard/repos","events_url":"https://api.github.com/users/TheGrandPackard/events{/privacy}","received_events_url":"https://api.github.com/users/TheGrandPackard/received_events","type":"User","site_admin":false},"repo":{"id":63366214,"name":"casperjs","full_name":"TheGrandPackard/casperjs","owner":{"login":"TheGrandPackard","id":447893,"avatar_url":"https://avatars.githubusercontent.com/u/447893?v=3","gravatar_id":"","url":"https://api.github.com/users/TheGrandPackard","html_url":"https://github.com/TheGrandPackard","followers_url":"https://api.github.com/users/TheGrandPackard/followers","following_url":"https://api.github.com/users/TheGrandPackard/following{/other_user}","gists_url":"https://api.github.com/users/TheGrandPackard/gists{/gist_id}","starred_url":"https://api.github.com/users/TheGrandPackard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheGrandPackard/subscriptions","organizations_url":"https://api.github.com/users/TheGrandPackard/orgs","repos_url":"https://api.github.com/users/TheGrandPackard/repos","events_url":"https://api.github.com/users/TheGrandPackard/events{/privacy}","received_events_url":"https://api.github.com/users/TheGrandPackard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TheGrandPackard/casperjs","description":"Navigation scripting and testing utility for PhantomJS and SlimerJS","fork":true,"url":"https://api.github.com/repos/TheGrandPackard/casperjs","forks_url":"https://api.github.com/repos/TheGrandPackard/casperjs/forks","keys_url":"https://api.github.com/repos/TheGrandPackard/casperjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheGrandPackard/casperjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheGrandPackard/casperjs/teams","hooks_url":"https://api.github.com/repos/TheGrandPackard/casperjs/hooks","issue_events_url":"https://api.github.com/repos/TheGrandPackard/casperjs/issues/events{/number}","events_url":"https://api.github.com/repos/TheGrandPackard/casperjs/events","assignees_url":"https://api.github.com/repos/TheGrandPackard/casperjs/assignees{/user}","branches_url":"https://api.github.com/repos/TheGrandPackard/casperjs/branches{/branch}","tags_url":"https://api.github.com/repos/TheGrandPackard/casperjs/tags","blobs_url":"https://api.github.com/repos/TheGrandPackard/casperjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheGrandPackard/casperjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheGrandPackard/casperjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheGrandPackard/casperjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheGrandPackard/casperjs/statuses/{sha}","languages_url":"https://api.github.com/repos/TheGrandPackard/casperjs/languages","stargazers_url":"https://api.github.com/repos/TheGrandPackard/casperjs/stargazers","contributors_url":"https://api.github.com/repos/TheGrandPackard/casperjs/contributors","subscribers_url":"https://api.github.com/repos/TheGrandPackard/casperjs/subscribers","subscription_url":"https://api.github.com/repos/TheGrandPackard/casperjs/subscription","commits_url":"https://api.github.com/repos/TheGrandPackard/casperjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheGrandPackard/casperjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheGrandPackard/casperjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheGrandPackard/casperjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/TheGrandPackard/casperjs/contents/{+path}","compare_url":"https://api.github.com/repos/TheGrandPackard/casperjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheGrandPackard/casperjs/merges","archive_url":"https://api.github.com/repos/TheGrandPackard/casperjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheGrandPackard/casperjs/downloads","issues_url":"https://api.github.com/repos/TheGrandPackard/casperjs/issues{/number}","pulls_url":"https://api.github.com/repos/TheGrandPackard/casperjs/pulls{/number}","milestones_url":"https://api.github.com/repos/TheGrandPackard/casperjs/milestones{/number}","notifications_url":"https://api.github.com/repos/TheGrandPackard/casperjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheGrandPackard/casperjs/labels{/name}","releases_url":"https://api.github.com/repos/TheGrandPackard/casperjs/releases{/id}","deployments_url":"https://api.github.com/repos/TheGrandPackard/casperjs/deployments","created_at":"2016-07-14T20:07:32Z","updated_at":"2016-07-14T20:07:34Z","pushed_at":"2016-07-14T20:15:15Z","git_url":"git://github.com/TheGrandPackard/casperjs.git","ssh_url":"git@github.com:TheGrandPackard/casperjs.git","clone_url":"https://github.com/TheGrandPackard/casperjs.git","svn_url":"https://github.com/TheGrandPackard/casperjs","homepage":"http://casperjs.org/","size":9097,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"casperjs:master","ref":"master","sha":"45a21fc9a931a8e02c11555fcfb1eb8c4844f8a2","user":{"login":"casperjs","id":3001554,"avatar_url":"https://avatars.githubusercontent.com/u/3001554?v=3","gravatar_id":"","url":"https://api.github.com/users/casperjs","html_url":"https://github.com/casperjs","followers_url":"https://api.github.com/users/casperjs/followers","following_url":"https://api.github.com/users/casperjs/following{/other_user}","gists_url":"https://api.github.com/users/casperjs/gists{/gist_id}","starred_url":"https://api.github.com/users/casperjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casperjs/subscriptions","organizations_url":"https://api.github.com/users/casperjs/orgs","repos_url":"https://api.github.com/users/casperjs/repos","events_url":"https://api.github.com/users/casperjs/events{/privacy}","received_events_url":"https://api.github.com/users/casperjs/received_events","type":"Organization","site_admin":false},"repo":{"id":2328523,"name":"casperjs","full_name":"casperjs/casperjs","owner":{"login":"casperjs","id":3001554,"avatar_url":"https://avatars.githubusercontent.com/u/3001554?v=3","gravatar_id":"","url":"https://api.github.com/users/casperjs","html_url":"https://github.com/casperjs","followers_url":"https://api.github.com/users/casperjs/followers","following_url":"https://api.github.com/users/casperjs/following{/other_user}","gists_url":"https://api.github.com/users/casperjs/gists{/gist_id}","starred_url":"https://api.github.com/users/casperjs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casperjs/subscriptions","organizations_url":"https://api.github.com/users/casperjs/orgs","repos_url":"https://api.github.com/users/casperjs/repos","events_url":"https://api.github.com/users/casperjs/events{/privacy}","received_events_url":"https://api.github.com/users/casperjs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/casperjs/casperjs","description":"Navigation scripting and testing utility for PhantomJS and SlimerJS","fork":false,"url":"https://api.github.com/repos/casperjs/casperjs","forks_url":"https://api.github.com/repos/casperjs/casperjs/forks","keys_url":"https://api.github.com/repos/casperjs/casperjs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/casperjs/casperjs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/casperjs/casperjs/teams","hooks_url":"https://api.github.com/repos/casperjs/casperjs/hooks","issue_events_url":"https://api.github.com/repos/casperjs/casperjs/issues/events{/number}","events_url":"https://api.github.com/repos/casperjs/casperjs/events","assignees_url":"https://api.github.com/repos/casperjs/casperjs/assignees{/user}","branches_url":"https://api.github.com/repos/casperjs/casperjs/branches{/branch}","tags_url":"https://api.github.com/repos/casperjs/casperjs/tags","blobs_url":"https://api.github.com/repos/casperjs/casperjs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/casperjs/casperjs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/casperjs/casperjs/git/refs{/sha}","trees_url":"https://api.github.com/repos/casperjs/casperjs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/casperjs/casperjs/statuses/{sha}","languages_url":"https://api.github.com/repos/casperjs/casperjs/languages","stargazers_url":"https://api.github.com/repos/casperjs/casperjs/stargazers","contributors_url":"https://api.github.com/repos/casperjs/casperjs/contributors","subscribers_url":"https://api.github.com/repos/casperjs/casperjs/subscribers","subscription_url":"https://api.github.com/repos/casperjs/casperjs/subscription","commits_url":"https://api.github.com/repos/casperjs/casperjs/commits{/sha}","git_commits_url":"https://api.github.com/repos/casperjs/casperjs/git/commits{/sha}","comments_url":"https://api.github.com/repos/casperjs/casperjs/comments{/number}","issue_comment_url":"https://api.github.com/repos/casperjs/casperjs/issues/comments{/number}","contents_url":"https://api.github.com/repos/casperjs/casperjs/contents/{+path}","compare_url":"https://api.github.com/repos/casperjs/casperjs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/casperjs/casperjs/merges","archive_url":"https://api.github.com/repos/casperjs/casperjs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/casperjs/casperjs/downloads","issues_url":"https://api.github.com/repos/casperjs/casperjs/issues{/number}","pulls_url":"https://api.github.com/repos/casperjs/casperjs/pulls{/number}","milestones_url":"https://api.github.com/repos/casperjs/casperjs/milestones{/number}","notifications_url":"https://api.github.com/repos/casperjs/casperjs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/casperjs/casperjs/labels{/name}","releases_url":"https://api.github.com/repos/casperjs/casperjs/releases{/id}","deployments_url":"https://api.github.com/repos/casperjs/casperjs/deployments","created_at":"2011-09-05T14:01:40Z","updated_at":"2016-07-14T13:27:50Z","pushed_at":"2016-07-14T21:50:26Z","git_url":"git://github.com/casperjs/casperjs.git","ssh_url":"git@github.com:casperjs/casperjs.git","clone_url":"https://github.com/casperjs/casperjs.git","svn_url":"https://github.com/casperjs/casperjs","homepage":"http://casperjs.org/","size":10936,"stargazers_count":5792,"watchers_count":5792,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":924,"mirror_url":null,"open_issues_count":264,"forks":924,"open_issues":264,"watchers":5792,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/casperjs/casperjs/pulls/1647"},"html":{"href":"https://github.com/casperjs/casperjs/pull/1647"},"issue":{"href":"https://api.github.com/repos/casperjs/casperjs/issues/1647"},"comments":{"href":"https://api.github.com/repos/casperjs/casperjs/issues/1647/comments"},"review_comments":{"href":"https://api.github.com/repos/casperjs/casperjs/pulls/1647/comments"},"review_comment":{"href":"https://api.github.com/repos/casperjs/casperjs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/casperjs/casperjs/pulls/1647/commits"},"statuses":{"href":"https://api.github.com/repos/casperjs/casperjs/statuses/8171c2149a5112b234629ca95feb193016e76cd1"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"BIGjuevos","id":1751088,"avatar_url":"https://avatars.githubusercontent.com/u/1751088?v=3","gravatar_id":"","url":"https://api.github.com/users/BIGjuevos","html_url":"https://github.com/BIGjuevos","followers_url":"https://api.github.com/users/BIGjuevos/followers","following_url":"https://api.github.com/users/BIGjuevos/following{/other_user}","gists_url":"https://api.github.com/users/BIGjuevos/gists{/gist_id}","starred_url":"https://api.github.com/users/BIGjuevos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BIGjuevos/subscriptions","organizations_url":"https://api.github.com/users/BIGjuevos/orgs","repos_url":"https://api.github.com/users/BIGjuevos/repos","events_url":"https://api.github.com/users/BIGjuevos/events{/privacy}","received_events_url":"https://api.github.com/users/BIGjuevos/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":2,"additions":8,"deletions":0,"changed_files":2}}
{"actor":{"display_login":"BIGjuevos"}}