{"action":"created","comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments/23339699","id":23339699,"diff_hunk":"@@ -316,8 +317,14 @@ def __init__(self):\n                                      stdin=subprocess.PIPE,\n                                      stdout=subprocess.PIPE,\n                                      cwd=self.tmpdir)\n-        except OSError:\n-            raise RuntimeError(\"Error starting process '%s'\" % self.texcommand)\n+        except OSError as e:\n+            if e.errno == errno.ENOENT:\n+                raise OSError(errno.ENOENT, \"Latex command not found. \"","path":"lib/matplotlib/backends/backend_pgf.py","position":16,"original_position":16,"commit_id":"4cdd4bd7d2ade9084a860b809f4b32e27ec6a2dd","original_commit_id":"4cdd4bd7d2ade9084a860b809f4b32e27ec6a2dd","user":{"login":"pwuertz","id":1819283,"avatar_url":"https://avatars.githubusercontent.com/u/1819283?v=3","gravatar_id":"","url":"https://api.github.com/users/pwuertz","html_url":"https://github.com/pwuertz","followers_url":"https://api.github.com/users/pwuertz/followers","following_url":"https://api.github.com/users/pwuertz/following{/other_user}","gists_url":"https://api.github.com/users/pwuertz/gists{/gist_id}","starred_url":"https://api.github.com/users/pwuertz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pwuertz/subscriptions","organizations_url":"https://api.github.com/users/pwuertz/orgs","repos_url":"https://api.github.com/users/pwuertz/repos","events_url":"https://api.github.com/users/pwuertz/events{/privacy}","received_events_url":"https://api.github.com/users/pwuertz/received_events","type":"User","site_admin":false},"body":"I guess the idea was to discriminate between the \"command not found\" and \"command returned with error\" case, so errors when running the latex process are propagated as RuntimeError, not finding the latex command is an OS or environment error. That distinction is a new \"feature\" if you would like to say so. I don't really know if this is to be considered as breaking the API, since the behaviour on error is neither defined nor documented anywhere.","created_at":"2015-01-21T22:18:52Z","updated_at":"2015-01-21T22:18:52Z","html_url":"https://github.com/matplotlib/matplotlib/pull/4022#discussion_r23339699","pull_request_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/4022","_links":{"self":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments/23339699"},"html":{"href":"https://github.com/matplotlib/matplotlib/pull/4022#discussion_r23339699"},"pull_request":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/4022"}}},"pull_request":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/4022","id":27745391,"html_url":"https://github.com/matplotlib/matplotlib/pull/4022","diff_url":"https://github.com/matplotlib/matplotlib/pull/4022.diff","patch_url":"https://github.com/matplotlib/matplotlib/pull/4022.patch","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4022","number":4022,"state":"open","locked":false,"title":"More helpful error message for pgf backend [backport to 1.4.x]","user":{"login":"nwin","id":949560,"avatar_url":"https://avatars.githubusercontent.com/u/949560?v=3","gravatar_id":"","url":"https://api.github.com/users/nwin","html_url":"https://github.com/nwin","followers_url":"https://api.github.com/users/nwin/followers","following_url":"https://api.github.com/users/nwin/following{/other_user}","gists_url":"https://api.github.com/users/nwin/gists{/gist_id}","starred_url":"https://api.github.com/users/nwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwin/subscriptions","organizations_url":"https://api.github.com/users/nwin/orgs","repos_url":"https://api.github.com/users/nwin/repos","events_url":"https://api.github.com/users/nwin/events{/privacy}","received_events_url":"https://api.github.com/users/nwin/received_events","type":"User","site_admin":false},"body":"Makes the error message more helpful if subprocess fails with a file-not-found-error.","created_at":"2015-01-21T09:28:47Z","updated_at":"2015-01-21T22:18:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b0e5fb85964bbda22ac0be6d906d0aa5eb3eda8","assignee":null,"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/13","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/13/labels","id":574346,"number":13,"title":"v1.4.x","description":"Maintenance branch for 1.4 release.","creator":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"open_issues":98,"closed_issues":106,"state":"open","created_at":"2014-02-19T15:03:47Z","updated_at":"2015-01-21T21:14:20Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/4022/commits","review_comments_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/4022/comments","review_comment_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments/{number}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4022/comments","statuses_url":"https://api.github.com/repos/matplotlib/matplotlib/statuses/4cdd4bd7d2ade9084a860b809f4b32e27ec6a2dd","head":{"label":"nwin:patch-1","ref":"patch-1","sha":"4cdd4bd7d2ade9084a860b809f4b32e27ec6a2dd","user":{"login":"nwin","id":949560,"avatar_url":"https://avatars.githubusercontent.com/u/949560?v=3","gravatar_id":"","url":"https://api.github.com/users/nwin","html_url":"https://github.com/nwin","followers_url":"https://api.github.com/users/nwin/followers","following_url":"https://api.github.com/users/nwin/following{/other_user}","gists_url":"https://api.github.com/users/nwin/gists{/gist_id}","starred_url":"https://api.github.com/users/nwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwin/subscriptions","organizations_url":"https://api.github.com/users/nwin/orgs","repos_url":"https://api.github.com/users/nwin/repos","events_url":"https://api.github.com/users/nwin/events{/privacy}","received_events_url":"https://api.github.com/users/nwin/received_events","type":"User","site_admin":false},"repo":{"id":29580864,"name":"matplotlib","full_name":"nwin/matplotlib","owner":{"login":"nwin","id":949560,"avatar_url":"https://avatars.githubusercontent.com/u/949560?v=3","gravatar_id":"","url":"https://api.github.com/users/nwin","html_url":"https://github.com/nwin","followers_url":"https://api.github.com/users/nwin/followers","following_url":"https://api.github.com/users/nwin/following{/other_user}","gists_url":"https://api.github.com/users/nwin/gists{/gist_id}","starred_url":"https://api.github.com/users/nwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwin/subscriptions","organizations_url":"https://api.github.com/users/nwin/orgs","repos_url":"https://api.github.com/users/nwin/repos","events_url":"https://api.github.com/users/nwin/events{/privacy}","received_events_url":"https://api.github.com/users/nwin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nwin/matplotlib","description":"matplotlib: plotting with Python","fork":true,"url":"https://api.github.com/repos/nwin/matplotlib","forks_url":"https://api.github.com/repos/nwin/matplotlib/forks","keys_url":"https://api.github.com/repos/nwin/matplotlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nwin/matplotlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nwin/matplotlib/teams","hooks_url":"https://api.github.com/repos/nwin/matplotlib/hooks","issue_events_url":"https://api.github.com/repos/nwin/matplotlib/issues/events{/number}","events_url":"https://api.github.com/repos/nwin/matplotlib/events","assignees_url":"https://api.github.com/repos/nwin/matplotlib/assignees{/user}","branches_url":"https://api.github.com/repos/nwin/matplotlib/branches{/branch}","tags_url":"https://api.github.com/repos/nwin/matplotlib/tags","blobs_url":"https://api.github.com/repos/nwin/matplotlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nwin/matplotlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nwin/matplotlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/nwin/matplotlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nwin/matplotlib/statuses/{sha}","languages_url":"https://api.github.com/repos/nwin/matplotlib/languages","stargazers_url":"https://api.github.com/repos/nwin/matplotlib/stargazers","contributors_url":"https://api.github.com/repos/nwin/matplotlib/contributors","subscribers_url":"https://api.github.com/repos/nwin/matplotlib/subscribers","subscription_url":"https://api.github.com/repos/nwin/matplotlib/subscription","commits_url":"https://api.github.com/repos/nwin/matplotlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/nwin/matplotlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/nwin/matplotlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/nwin/matplotlib/issues/comments/{number}","contents_url":"https://api.github.com/repos/nwin/matplotlib/contents/{+path}","compare_url":"https://api.github.com/repos/nwin/matplotlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nwin/matplotlib/merges","archive_url":"https://api.github.com/repos/nwin/matplotlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nwin/matplotlib/downloads","issues_url":"https://api.github.com/repos/nwin/matplotlib/issues{/number}","pulls_url":"https://api.github.com/repos/nwin/matplotlib/pulls{/number}","milestones_url":"https://api.github.com/repos/nwin/matplotlib/milestones{/number}","notifications_url":"https://api.github.com/repos/nwin/matplotlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nwin/matplotlib/labels{/name}","releases_url":"https://api.github.com/repos/nwin/matplotlib/releases{/id}","created_at":"2015-01-21T08:59:51Z","updated_at":"2015-01-21T08:59:59Z","pushed_at":"2015-01-21T10:09:24Z","git_url":"git://github.com/nwin/matplotlib.git","ssh_url":"git@github.com:nwin/matplotlib.git","clone_url":"https://github.com/nwin/matplotlib.git","svn_url":"https://github.com/nwin/matplotlib","homepage":"http://matplotlib.org/","size":250247,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"matplotlib:master","ref":"master","sha":"9408937493d685d0899e37c76cc07eceecccb797","user":{"login":"matplotlib","id":215947,"avatar_url":"https://avatars.githubusercontent.com/u/215947?v=3","gravatar_id":"","url":"https://api.github.com/users/matplotlib","html_url":"https://github.com/matplotlib","followers_url":"https://api.github.com/users/matplotlib/followers","following_url":"https://api.github.com/users/matplotlib/following{/other_user}","gists_url":"https://api.github.com/users/matplotlib/gists{/gist_id}","starred_url":"https://api.github.com/users/matplotlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matplotlib/subscriptions","organizations_url":"https://api.github.com/users/matplotlib/orgs","repos_url":"https://api.github.com/users/matplotlib/repos","events_url":"https://api.github.com/users/matplotlib/events{/privacy}","received_events_url":"https://api.github.com/users/matplotlib/received_events","type":"Organization","site_admin":false},"repo":{"id":1385122,"name":"matplotlib","full_name":"matplotlib/matplotlib","owner":{"login":"matplotlib","id":215947,"avatar_url":"https://avatars.githubusercontent.com/u/215947?v=3","gravatar_id":"","url":"https://api.github.com/users/matplotlib","html_url":"https://github.com/matplotlib","followers_url":"https://api.github.com/users/matplotlib/followers","following_url":"https://api.github.com/users/matplotlib/following{/other_user}","gists_url":"https://api.github.com/users/matplotlib/gists{/gist_id}","starred_url":"https://api.github.com/users/matplotlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matplotlib/subscriptions","organizations_url":"https://api.github.com/users/matplotlib/orgs","repos_url":"https://api.github.com/users/matplotlib/repos","events_url":"https://api.github.com/users/matplotlib/events{/privacy}","received_events_url":"https://api.github.com/users/matplotlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/matplotlib/matplotlib","description":"matplotlib: plotting with Python","fork":false,"url":"https://api.github.com/repos/matplotlib/matplotlib","forks_url":"https://api.github.com/repos/matplotlib/matplotlib/forks","keys_url":"https://api.github.com/repos/matplotlib/matplotlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matplotlib/matplotlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matplotlib/matplotlib/teams","hooks_url":"https://api.github.com/repos/matplotlib/matplotlib/hooks","issue_events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/events{/number}","events_url":"https://api.github.com/repos/matplotlib/matplotlib/events","assignees_url":"https://api.github.com/repos/matplotlib/matplotlib/assignees{/user}","branches_url":"https://api.github.com/repos/matplotlib/matplotlib/branches{/branch}","tags_url":"https://api.github.com/repos/matplotlib/matplotlib/tags","blobs_url":"https://api.github.com/repos/matplotlib/matplotlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matplotlib/matplotlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matplotlib/matplotlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/matplotlib/matplotlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matplotlib/matplotlib/statuses/{sha}","languages_url":"https://api.github.com/repos/matplotlib/matplotlib/languages","stargazers_url":"https://api.github.com/repos/matplotlib/matplotlib/stargazers","contributors_url":"https://api.github.com/repos/matplotlib/matplotlib/contributors","subscribers_url":"https://api.github.com/repos/matplotlib/matplotlib/subscribers","subscription_url":"https://api.github.com/repos/matplotlib/matplotlib/subscription","commits_url":"https://api.github.com/repos/matplotlib/matplotlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/matplotlib/matplotlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/{number}","contents_url":"https://api.github.com/repos/matplotlib/matplotlib/contents/{+path}","compare_url":"https://api.github.com/repos/matplotlib/matplotlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matplotlib/matplotlib/merges","archive_url":"https://api.github.com/repos/matplotlib/matplotlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matplotlib/matplotlib/downloads","issues_url":"https://api.github.com/repos/matplotlib/matplotlib/issues{/number}","pulls_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls{/number}","milestones_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones{/number}","notifications_url":"https://api.github.com/repos/matplotlib/matplotlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/labels{/name}","releases_url":"https://api.github.com/repos/matplotlib/matplotlib/releases{/id}","created_at":"2011-02-19T03:17:12Z","updated_at":"2015-01-21T21:59:41Z","pushed_at":"2015-01-19T15:01:43Z","git_url":"git://github.com/matplotlib/matplotlib.git","ssh_url":"git@github.com:matplotlib/matplotlib.git","clone_url":"https://github.com/matplotlib/matplotlib.git","svn_url":"https://github.com/matplotlib/matplotlib","homepage":"http://matplotlib.org/","size":250247,"stargazers_count":2175,"watchers_count":2175,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1065,"mirror_url":null,"open_issues_count":460,"forks":1065,"open_issues":460,"watchers":2175,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/4022"},"html":{"href":"https://github.com/matplotlib/matplotlib/pull/4022"},"issue":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/4022"},"comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/4022/comments"},"review_comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/4022/comments"},"review_comment":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/4022/commits"},"statuses":{"href":"https://api.github.com/repos/matplotlib/matplotlib/statuses/4cdd4bd7d2ade9084a860b809f4b32e27ec6a2dd"}}}}