{"action":"created","comment":{"url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/comments/69406462","id":69406462,"diff_hunk":"@@ -204,6 +204,16 @@ fn format_files(files: &Vec<PathBuf>,\n         .stdout(stdout)\n         .args(files)\n         .args(fmt_args)\n-        .spawn());\n+        .spawn()\n+        .map_err(|e| {\n+            match e.kind() {\n+                std::io::ErrorKind::NotFound => {\n+                    std::io::Error::new(std::io::ErrorKind::Other,\n+                                        \"Could not run rustmft, please make sure it is in your \\","path":"src/bin/cargo-fmt.rs","position":10,"original_position":10,"commit_id":"64a9ce30a3202fed17b78c95746af4186bf4a0da","original_commit_id":"64a9ce30a3202fed17b78c95746af4186bf4a0da","user":{"login":"nrc","id":762626,"avatar_url":"https://avatars.githubusercontent.com/u/762626?v=3","gravatar_id":"","url":"https://api.github.com/users/nrc","html_url":"https://github.com/nrc","followers_url":"https://api.github.com/users/nrc/followers","following_url":"https://api.github.com/users/nrc/following{/other_user}","gists_url":"https://api.github.com/users/nrc/gists{/gist_id}","starred_url":"https://api.github.com/users/nrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nrc/subscriptions","organizations_url":"https://api.github.com/users/nrc/orgs","repos_url":"https://api.github.com/users/nrc/repos","events_url":"https://api.github.com/users/nrc/events{/privacy}","received_events_url":"https://api.github.com/users/nrc/received_events","type":"User","site_admin":false},"body":"typo: rustmft","created_at":"2016-07-04T03:57:44Z","updated_at":"2016-07-04T03:57:44Z","html_url":"https://github.com/rust-lang-nursery/rustfmt/pull/1084#discussion_r69406462","pull_request_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/1084","_links":{"self":{"href":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/comments/69406462"},"html":{"href":"https://github.com/rust-lang-nursery/rustfmt/pull/1084#discussion_r69406462"},"pull_request":{"href":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/1084"}}},"pull_request":{"url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/1084","id":76073771,"html_url":"https://github.com/rust-lang-nursery/rustfmt/pull/1084","diff_url":"https://github.com/rust-lang-nursery/rustfmt/pull/1084.diff","patch_url":"https://github.com/rust-lang-nursery/rustfmt/pull/1084.patch","issue_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/1084","number":1084,"state":"open","locked":false,"title":"Show more helpful error if rustfmt is not in PATH.","user":{"login":"johannhof","id":2622601,"avatar_url":"https://avatars.githubusercontent.com/u/2622601?v=3","gravatar_id":"","url":"https://api.github.com/users/johannhof","html_url":"https://github.com/johannhof","followers_url":"https://api.github.com/users/johannhof/followers","following_url":"https://api.github.com/users/johannhof/following{/other_user}","gists_url":"https://api.github.com/users/johannhof/gists{/gist_id}","starred_url":"https://api.github.com/users/johannhof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johannhof/subscriptions","organizations_url":"https://api.github.com/users/johannhof/orgs","repos_url":"https://api.github.com/users/johannhof/repos","events_url":"https://api.github.com/users/johannhof/events{/privacy}","received_events_url":"https://api.github.com/users/johannhof/received_events","type":"User","site_admin":false},"body":"This fixes #1071.","created_at":"2016-07-02T20:21:02Z","updated_at":"2016-07-04T03:57:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0fea0d60af009ae186ec751f8b73e789931c3d50","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/1084/commits","review_comments_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/1084/comments","review_comment_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/1084/comments","statuses_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/statuses/64a9ce30a3202fed17b78c95746af4186bf4a0da","head":{"label":"johannhof:rustfmt-not-found","ref":"rustfmt-not-found","sha":"64a9ce30a3202fed17b78c95746af4186bf4a0da","user":{"login":"johannhof","id":2622601,"avatar_url":"https://avatars.githubusercontent.com/u/2622601?v=3","gravatar_id":"","url":"https://api.github.com/users/johannhof","html_url":"https://github.com/johannhof","followers_url":"https://api.github.com/users/johannhof/followers","following_url":"https://api.github.com/users/johannhof/following{/other_user}","gists_url":"https://api.github.com/users/johannhof/gists{/gist_id}","starred_url":"https://api.github.com/users/johannhof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johannhof/subscriptions","organizations_url":"https://api.github.com/users/johannhof/orgs","repos_url":"https://api.github.com/users/johannhof/repos","events_url":"https://api.github.com/users/johannhof/events{/privacy}","received_events_url":"https://api.github.com/users/johannhof/received_events","type":"User","site_admin":false},"repo":{"id":45350834,"name":"rustfmt","full_name":"johannhof/rustfmt","owner":{"login":"johannhof","id":2622601,"avatar_url":"https://avatars.githubusercontent.com/u/2622601?v=3","gravatar_id":"","url":"https://api.github.com/users/johannhof","html_url":"https://github.com/johannhof","followers_url":"https://api.github.com/users/johannhof/followers","following_url":"https://api.github.com/users/johannhof/following{/other_user}","gists_url":"https://api.github.com/users/johannhof/gists{/gist_id}","starred_url":"https://api.github.com/users/johannhof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johannhof/subscriptions","organizations_url":"https://api.github.com/users/johannhof/orgs","repos_url":"https://api.github.com/users/johannhof/repos","events_url":"https://api.github.com/users/johannhof/events{/privacy}","received_events_url":"https://api.github.com/users/johannhof/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/johannhof/rustfmt","description":"Format Rust code","fork":true,"url":"https://api.github.com/repos/johannhof/rustfmt","forks_url":"https://api.github.com/repos/johannhof/rustfmt/forks","keys_url":"https://api.github.com/repos/johannhof/rustfmt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/johannhof/rustfmt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/johannhof/rustfmt/teams","hooks_url":"https://api.github.com/repos/johannhof/rustfmt/hooks","issue_events_url":"https://api.github.com/repos/johannhof/rustfmt/issues/events{/number}","events_url":"https://api.github.com/repos/johannhof/rustfmt/events","assignees_url":"https://api.github.com/repos/johannhof/rustfmt/assignees{/user}","branches_url":"https://api.github.com/repos/johannhof/rustfmt/branches{/branch}","tags_url":"https://api.github.com/repos/johannhof/rustfmt/tags","blobs_url":"https://api.github.com/repos/johannhof/rustfmt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/johannhof/rustfmt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/johannhof/rustfmt/git/refs{/sha}","trees_url":"https://api.github.com/repos/johannhof/rustfmt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/johannhof/rustfmt/statuses/{sha}","languages_url":"https://api.github.com/repos/johannhof/rustfmt/languages","stargazers_url":"https://api.github.com/repos/johannhof/rustfmt/stargazers","contributors_url":"https://api.github.com/repos/johannhof/rustfmt/contributors","subscribers_url":"https://api.github.com/repos/johannhof/rustfmt/subscribers","subscription_url":"https://api.github.com/repos/johannhof/rustfmt/subscription","commits_url":"https://api.github.com/repos/johannhof/rustfmt/commits{/sha}","git_commits_url":"https://api.github.com/repos/johannhof/rustfmt/git/commits{/sha}","comments_url":"https://api.github.com/repos/johannhof/rustfmt/comments{/number}","issue_comment_url":"https://api.github.com/repos/johannhof/rustfmt/issues/comments{/number}","contents_url":"https://api.github.com/repos/johannhof/rustfmt/contents/{+path}","compare_url":"https://api.github.com/repos/johannhof/rustfmt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/johannhof/rustfmt/merges","archive_url":"https://api.github.com/repos/johannhof/rustfmt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/johannhof/rustfmt/downloads","issues_url":"https://api.github.com/repos/johannhof/rustfmt/issues{/number}","pulls_url":"https://api.github.com/repos/johannhof/rustfmt/pulls{/number}","milestones_url":"https://api.github.com/repos/johannhof/rustfmt/milestones{/number}","notifications_url":"https://api.github.com/repos/johannhof/rustfmt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/johannhof/rustfmt/labels{/name}","releases_url":"https://api.github.com/repos/johannhof/rustfmt/releases{/id}","deployments_url":"https://api.github.com/repos/johannhof/rustfmt/deployments","created_at":"2015-11-01T17:50:15Z","updated_at":"2015-11-01T17:50:16Z","pushed_at":"2016-07-02T20:20:26Z","git_url":"git://github.com/johannhof/rustfmt.git","ssh_url":"git@github.com:johannhof/rustfmt.git","clone_url":"https://github.com/johannhof/rustfmt.git","svn_url":"https://github.com/johannhof/rustfmt","homepage":null,"size":2175,"stargazers_count":0,"watchers_count":0,"language":"Rust","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":"rust-lang-nursery:master","ref":"master","sha":"7c70254fd85d7128c3f7ddb3c418a8c623452d48","user":{"login":"rust-lang-nursery","id":14631425,"avatar_url":"https://avatars.githubusercontent.com/u/14631425?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang-nursery","html_url":"https://github.com/rust-lang-nursery","followers_url":"https://api.github.com/users/rust-lang-nursery/followers","following_url":"https://api.github.com/users/rust-lang-nursery/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang-nursery/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang-nursery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang-nursery/subscriptions","organizations_url":"https://api.github.com/users/rust-lang-nursery/orgs","repos_url":"https://api.github.com/users/rust-lang-nursery/repos","events_url":"https://api.github.com/users/rust-lang-nursery/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang-nursery/received_events","type":"Organization","site_admin":false},"repo":{"id":31830551,"name":"rustfmt","full_name":"rust-lang-nursery/rustfmt","owner":{"login":"rust-lang-nursery","id":14631425,"avatar_url":"https://avatars.githubusercontent.com/u/14631425?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang-nursery","html_url":"https://github.com/rust-lang-nursery","followers_url":"https://api.github.com/users/rust-lang-nursery/followers","following_url":"https://api.github.com/users/rust-lang-nursery/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang-nursery/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang-nursery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang-nursery/subscriptions","organizations_url":"https://api.github.com/users/rust-lang-nursery/orgs","repos_url":"https://api.github.com/users/rust-lang-nursery/repos","events_url":"https://api.github.com/users/rust-lang-nursery/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang-nursery/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rust-lang-nursery/rustfmt","description":"Format Rust code","fork":false,"url":"https://api.github.com/repos/rust-lang-nursery/rustfmt","forks_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/forks","keys_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/teams","hooks_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/hooks","issue_events_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/events{/number}","events_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/events","assignees_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/assignees{/user}","branches_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/branches{/branch}","tags_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/tags","blobs_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/git/refs{/sha}","trees_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/statuses/{sha}","languages_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/languages","stargazers_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/stargazers","contributors_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/contributors","subscribers_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/subscribers","subscription_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/subscription","commits_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/commits{/sha}","git_commits_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/git/commits{/sha}","comments_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/comments{/number}","issue_comment_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/comments{/number}","contents_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/contents/{+path}","compare_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/merges","archive_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/downloads","issues_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues{/number}","pulls_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls{/number}","milestones_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/milestones{/number}","notifications_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/labels{/name}","releases_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/releases{/id}","deployments_url":"https://api.github.com/repos/rust-lang-nursery/rustfmt/deployments","created_at":"2015-03-07T22:51:56Z","updated_at":"2016-07-03T09:31:44Z","pushed_at":"2016-07-04T03:57:01Z","git_url":"git://github.com/rust-lang-nursery/rustfmt.git","ssh_url":"git@github.com:rust-lang-nursery/rustfmt.git","clone_url":"https://github.com/rust-lang-nursery/rustfmt.git","svn_url":"https://github.com/rust-lang-nursery/rustfmt","homepage":null,"size":2748,"stargazers_count":770,"watchers_count":770,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":123,"mirror_url":null,"open_issues_count":190,"forks":123,"open_issues":190,"watchers":770,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/1084"},"html":{"href":"https://github.com/rust-lang-nursery/rustfmt/pull/1084"},"issue":{"href":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/1084"},"comments":{"href":"https://api.github.com/repos/rust-lang-nursery/rustfmt/issues/1084/comments"},"review_comments":{"href":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/1084/comments"},"review_comment":{"href":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rust-lang-nursery/rustfmt/pulls/1084/commits"},"statuses":{"href":"https://api.github.com/repos/rust-lang-nursery/rustfmt/statuses/64a9ce30a3202fed17b78c95746af4186bf4a0da"}}}}
{"actor":{"display_login":"nrc"}}