{"action":"opened","number":161,"pull_request":{"url":"https://api.github.com/repos/sourcegraph/srclib/pulls/161","id":37271210,"html_url":"https://github.com/sourcegraph/srclib/pull/161","diff_url":"https://github.com/sourcegraph/srclib/pull/161.diff","patch_url":"https://github.com/sourcegraph/srclib/pull/161.patch","issue_url":"https://api.github.com/repos/sourcegraph/srclib/issues/161","number":161,"state":"open","locked":false,"title":"toolchain: use more descriptive error in `Lookup`.","user":{"login":"MaikuMori","id":28470,"avatar_url":"https://avatars.githubusercontent.com/u/28470?v=3","gravatar_id":"","url":"https://api.github.com/users/MaikuMori","html_url":"https://github.com/MaikuMori","followers_url":"https://api.github.com/users/MaikuMori/followers","following_url":"https://api.github.com/users/MaikuMori/following{/other_user}","gists_url":"https://api.github.com/users/MaikuMori/gists{/gist_id}","starred_url":"https://api.github.com/users/MaikuMori/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaikuMori/subscriptions","organizations_url":"https://api.github.com/users/MaikuMori/orgs","repos_url":"https://api.github.com/users/MaikuMori/repos","events_url":"https://api.github.com/users/MaikuMori/events{/privacy}","received_events_url":"https://api.github.com/users/MaikuMori/received_events","type":"User","site_admin":false},"body":"Fixes #157. Shouldn't contain breaking changes.\r\n\r\nPersonally I'd define `ErrToolchainNotFound` and use that, but as sqs mentioned using `&os.PathError` is backwards compatible.\r\n\r\nI checked across sourgraph projects and none is using error string matching instead of `os.IsNotFound` so everything looks good.","created_at":"2015-06-09T16:14:39Z","updated_at":"2015-06-09T16:14:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sourcegraph/srclib/pulls/161/commits","review_comments_url":"https://api.github.com/repos/sourcegraph/srclib/pulls/161/comments","review_comment_url":"https://api.github.com/repos/sourcegraph/srclib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sourcegraph/srclib/issues/161/comments","statuses_url":"https://api.github.com/repos/sourcegraph/srclib/statuses/463346687377eaee8eae75dbc4ff4e399414aee9","head":{"label":"sourcegraph:add-more-descriptive-lookup-err","ref":"add-more-descriptive-lookup-err","sha":"463346687377eaee8eae75dbc4ff4e399414aee9","user":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"repo":{"id":22002058,"name":"srclib","full_name":"sourcegraph/srclib","owner":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sourcegraph/srclib","description":"srclib is a polyglot code analysis library, built for hackability. It consists of language analysis toolchains (currently for Go, Java, Python, JavaScript, Ruby, and Haskell) with a common output format, and developer tools (such as editor plugins) that consume this format.","fork":false,"url":"https://api.github.com/repos/sourcegraph/srclib","forks_url":"https://api.github.com/repos/sourcegraph/srclib/forks","keys_url":"https://api.github.com/repos/sourcegraph/srclib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sourcegraph/srclib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sourcegraph/srclib/teams","hooks_url":"https://api.github.com/repos/sourcegraph/srclib/hooks","issue_events_url":"https://api.github.com/repos/sourcegraph/srclib/issues/events{/number}","events_url":"https://api.github.com/repos/sourcegraph/srclib/events","assignees_url":"https://api.github.com/repos/sourcegraph/srclib/assignees{/user}","branches_url":"https://api.github.com/repos/sourcegraph/srclib/branches{/branch}","tags_url":"https://api.github.com/repos/sourcegraph/srclib/tags","blobs_url":"https://api.github.com/repos/sourcegraph/srclib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sourcegraph/srclib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sourcegraph/srclib/git/refs{/sha}","trees_url":"https://api.github.com/repos/sourcegraph/srclib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sourcegraph/srclib/statuses/{sha}","languages_url":"https://api.github.com/repos/sourcegraph/srclib/languages","stargazers_url":"https://api.github.com/repos/sourcegraph/srclib/stargazers","contributors_url":"https://api.github.com/repos/sourcegraph/srclib/contributors","subscribers_url":"https://api.github.com/repos/sourcegraph/srclib/subscribers","subscription_url":"https://api.github.com/repos/sourcegraph/srclib/subscription","commits_url":"https://api.github.com/repos/sourcegraph/srclib/commits{/sha}","git_commits_url":"https://api.github.com/repos/sourcegraph/srclib/git/commits{/sha}","comments_url":"https://api.github.com/repos/sourcegraph/srclib/comments{/number}","issue_comment_url":"https://api.github.com/repos/sourcegraph/srclib/issues/comments{/number}","contents_url":"https://api.github.com/repos/sourcegraph/srclib/contents/{+path}","compare_url":"https://api.github.com/repos/sourcegraph/srclib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sourcegraph/srclib/merges","archive_url":"https://api.github.com/repos/sourcegraph/srclib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sourcegraph/srclib/downloads","issues_url":"https://api.github.com/repos/sourcegraph/srclib/issues{/number}","pulls_url":"https://api.github.com/repos/sourcegraph/srclib/pulls{/number}","milestones_url":"https://api.github.com/repos/sourcegraph/srclib/milestones{/number}","notifications_url":"https://api.github.com/repos/sourcegraph/srclib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sourcegraph/srclib/labels{/name}","releases_url":"https://api.github.com/repos/sourcegraph/srclib/releases{/id}","created_at":"2014-07-19T04:38:41Z","updated_at":"2015-06-09T11:08:07Z","pushed_at":"2015-06-09T16:10:11Z","git_url":"git://github.com/sourcegraph/srclib.git","ssh_url":"git@github.com:sourcegraph/srclib.git","clone_url":"https://github.com/sourcegraph/srclib.git","svn_url":"https://github.com/sourcegraph/srclib","homepage":"https://srclib.org","size":6265,"stargazers_count":643,"watchers_count":643,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":43,"forks":30,"open_issues":43,"watchers":643,"default_branch":"master"}},"base":{"label":"sourcegraph:master","ref":"master","sha":"7e6ce0746ea6043833d3a229085dffc16c2c8c3c","user":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"repo":{"id":22002058,"name":"srclib","full_name":"sourcegraph/srclib","owner":{"login":"sourcegraph","id":3979584,"avatar_url":"https://avatars.githubusercontent.com/u/3979584?v=3","gravatar_id":"","url":"https://api.github.com/users/sourcegraph","html_url":"https://github.com/sourcegraph","followers_url":"https://api.github.com/users/sourcegraph/followers","following_url":"https://api.github.com/users/sourcegraph/following{/other_user}","gists_url":"https://api.github.com/users/sourcegraph/gists{/gist_id}","starred_url":"https://api.github.com/users/sourcegraph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sourcegraph/subscriptions","organizations_url":"https://api.github.com/users/sourcegraph/orgs","repos_url":"https://api.github.com/users/sourcegraph/repos","events_url":"https://api.github.com/users/sourcegraph/events{/privacy}","received_events_url":"https://api.github.com/users/sourcegraph/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sourcegraph/srclib","description":"srclib is a polyglot code analysis library, built for hackability. It consists of language analysis toolchains (currently for Go, Java, Python, JavaScript, Ruby, and Haskell) with a common output format, and developer tools (such as editor plugins) that consume this format.","fork":false,"url":"https://api.github.com/repos/sourcegraph/srclib","forks_url":"https://api.github.com/repos/sourcegraph/srclib/forks","keys_url":"https://api.github.com/repos/sourcegraph/srclib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sourcegraph/srclib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sourcegraph/srclib/teams","hooks_url":"https://api.github.com/repos/sourcegraph/srclib/hooks","issue_events_url":"https://api.github.com/repos/sourcegraph/srclib/issues/events{/number}","events_url":"https://api.github.com/repos/sourcegraph/srclib/events","assignees_url":"https://api.github.com/repos/sourcegraph/srclib/assignees{/user}","branches_url":"https://api.github.com/repos/sourcegraph/srclib/branches{/branch}","tags_url":"https://api.github.com/repos/sourcegraph/srclib/tags","blobs_url":"https://api.github.com/repos/sourcegraph/srclib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sourcegraph/srclib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sourcegraph/srclib/git/refs{/sha}","trees_url":"https://api.github.com/repos/sourcegraph/srclib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sourcegraph/srclib/statuses/{sha}","languages_url":"https://api.github.com/repos/sourcegraph/srclib/languages","stargazers_url":"https://api.github.com/repos/sourcegraph/srclib/stargazers","contributors_url":"https://api.github.com/repos/sourcegraph/srclib/contributors","subscribers_url":"https://api.github.com/repos/sourcegraph/srclib/subscribers","subscription_url":"https://api.github.com/repos/sourcegraph/srclib/subscription","commits_url":"https://api.github.com/repos/sourcegraph/srclib/commits{/sha}","git_commits_url":"https://api.github.com/repos/sourcegraph/srclib/git/commits{/sha}","comments_url":"https://api.github.com/repos/sourcegraph/srclib/comments{/number}","issue_comment_url":"https://api.github.com/repos/sourcegraph/srclib/issues/comments{/number}","contents_url":"https://api.github.com/repos/sourcegraph/srclib/contents/{+path}","compare_url":"https://api.github.com/repos/sourcegraph/srclib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sourcegraph/srclib/merges","archive_url":"https://api.github.com/repos/sourcegraph/srclib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sourcegraph/srclib/downloads","issues_url":"https://api.github.com/repos/sourcegraph/srclib/issues{/number}","pulls_url":"https://api.github.com/repos/sourcegraph/srclib/pulls{/number}","milestones_url":"https://api.github.com/repos/sourcegraph/srclib/milestones{/number}","notifications_url":"https://api.github.com/repos/sourcegraph/srclib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sourcegraph/srclib/labels{/name}","releases_url":"https://api.github.com/repos/sourcegraph/srclib/releases{/id}","created_at":"2014-07-19T04:38:41Z","updated_at":"2015-06-09T11:08:07Z","pushed_at":"2015-06-09T16:10:11Z","git_url":"git://github.com/sourcegraph/srclib.git","ssh_url":"git@github.com:sourcegraph/srclib.git","clone_url":"https://github.com/sourcegraph/srclib.git","svn_url":"https://github.com/sourcegraph/srclib","homepage":"https://srclib.org","size":6265,"stargazers_count":643,"watchers_count":643,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":43,"forks":30,"open_issues":43,"watchers":643,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sourcegraph/srclib/pulls/161"},"html":{"href":"https://github.com/sourcegraph/srclib/pull/161"},"issue":{"href":"https://api.github.com/repos/sourcegraph/srclib/issues/161"},"comments":{"href":"https://api.github.com/repos/sourcegraph/srclib/issues/161/comments"},"review_comments":{"href":"https://api.github.com/repos/sourcegraph/srclib/pulls/161/comments"},"review_comment":{"href":"https://api.github.com/repos/sourcegraph/srclib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sourcegraph/srclib/pulls/161/commits"},"statuses":{"href":"https://api.github.com/repos/sourcegraph/srclib/statuses/463346687377eaee8eae75dbc4ff4e399414aee9"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}