{"action":"created","comment":{"url":"https://api.github.com/repos/appfolio/farcy/pulls/comments/48074702","id":48074702,"diff_hunk":"@@ -200,3 +200,13 @@ def test_single_error(self):\n         self.assertEqual({1: [('SelectorFormat: Selector `test_class` '\n                                'should be written in lowercase with hyphens')]},\n                          errors)\n+\n+    def test_linting_exception(self):\n+        \"\"\"We should raise an error with useful information if linting fails.\"\"\"\n+        try:\n+            self.linter.process(self.path('linting_exception.scss'))\n+        except HandlerException as exc:\n+            self.assertEqual('Error occurred during linting: Syntax Error: '\n+                             'Invalid CSS after \".broken-class '\n+                             '{\": expected \"}\", was \"\" (line 2, column 1)',\n+                             '{0}'.format(exc))","path":"test/test_handlers.py","position":33,"original_position":33,"commit_id":"6a97af7100d13af15bf30e30a78c76452b97007f","original_commit_id":"6a97af7100d13af15bf30e30a78c76452b97007f","user":{"login":"balloob","id":1444314,"avatar_url":"https://avatars.githubusercontent.com/u/1444314?v=3","gravatar_id":"","url":"https://api.github.com/users/balloob","html_url":"https://github.com/balloob","followers_url":"https://api.github.com/users/balloob/followers","following_url":"https://api.github.com/users/balloob/following{/other_user}","gists_url":"https://api.github.com/users/balloob/gists{/gist_id}","starred_url":"https://api.github.com/users/balloob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/balloob/subscriptions","organizations_url":"https://api.github.com/users/balloob/orgs","repos_url":"https://api.github.com/users/balloob/repos","events_url":"https://api.github.com/users/balloob/events{/privacy}","received_events_url":"https://api.github.com/users/balloob/received_events","type":"User","site_admin":false},"body":"Alternatively, you can also use `str(exc)`","created_at":"2015-12-18T21:58:28Z","updated_at":"2015-12-18T21:58:28Z","html_url":"https://github.com/appfolio/farcy/pull/100#discussion_r48074702","pull_request_url":"https://api.github.com/repos/appfolio/farcy/pulls/100","_links":{"self":{"href":"https://api.github.com/repos/appfolio/farcy/pulls/comments/48074702"},"html":{"href":"https://github.com/appfolio/farcy/pull/100#discussion_r48074702"},"pull_request":{"href":"https://api.github.com/repos/appfolio/farcy/pulls/100"}}},"pull_request":{"url":"https://api.github.com/repos/appfolio/farcy/pulls/100","id":54144890,"html_url":"https://github.com/appfolio/farcy/pull/100","diff_url":"https://github.com/appfolio/farcy/pull/100.diff","patch_url":"https://github.com/appfolio/farcy/pull/100.patch","issue_url":"https://api.github.com/repos/appfolio/farcy/issues/100","number":100,"state":"open","locked":false,"title":"Throw Useful SCSS-Lint Exception","user":{"login":"deakolt","id":1335178,"avatar_url":"https://avatars.githubusercontent.com/u/1335178?v=3","gravatar_id":"","url":"https://api.github.com/users/deakolt","html_url":"https://github.com/deakolt","followers_url":"https://api.github.com/users/deakolt/followers","following_url":"https://api.github.com/users/deakolt/following{/other_user}","gists_url":"https://api.github.com/users/deakolt/gists{/gist_id}","starred_url":"https://api.github.com/users/deakolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deakolt/subscriptions","organizations_url":"https://api.github.com/users/deakolt/orgs","repos_url":"https://api.github.com/users/deakolt/repos","events_url":"https://api.github.com/users/deakolt/events{/privacy}","received_events_url":"https://api.github.com/users/deakolt/received_events","type":"User","site_admin":false},"body":"- Adds a useful error message when SCSS-Lint throws an exception while linting, per issue #99\r\n- Also, adds SCSS-Lint to the Unreleased section of `CHANGES.md`","created_at":"2015-12-18T20:12:51Z","updated_at":"2015-12-18T21:58:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b57cdfe61757c9a21ec66fe3c1e8de16689fc4df","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/appfolio/farcy/pulls/100/commits","review_comments_url":"https://api.github.com/repos/appfolio/farcy/pulls/100/comments","review_comment_url":"https://api.github.com/repos/appfolio/farcy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/appfolio/farcy/issues/100/comments","statuses_url":"https://api.github.com/repos/appfolio/farcy/statuses/6a97af7100d13af15bf30e30a78c76452b97007f","head":{"label":"deakolt:throw-useful-scsslint-error","ref":"throw-useful-scsslint-error","sha":"6a97af7100d13af15bf30e30a78c76452b97007f","user":{"login":"deakolt","id":1335178,"avatar_url":"https://avatars.githubusercontent.com/u/1335178?v=3","gravatar_id":"","url":"https://api.github.com/users/deakolt","html_url":"https://github.com/deakolt","followers_url":"https://api.github.com/users/deakolt/followers","following_url":"https://api.github.com/users/deakolt/following{/other_user}","gists_url":"https://api.github.com/users/deakolt/gists{/gist_id}","starred_url":"https://api.github.com/users/deakolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deakolt/subscriptions","organizations_url":"https://api.github.com/users/deakolt/orgs","repos_url":"https://api.github.com/users/deakolt/repos","events_url":"https://api.github.com/users/deakolt/events{/privacy}","received_events_url":"https://api.github.com/users/deakolt/received_events","type":"User","site_admin":false},"repo":{"id":47996085,"name":"farcy","full_name":"deakolt/farcy","owner":{"login":"deakolt","id":1335178,"avatar_url":"https://avatars.githubusercontent.com/u/1335178?v=3","gravatar_id":"","url":"https://api.github.com/users/deakolt","html_url":"https://github.com/deakolt","followers_url":"https://api.github.com/users/deakolt/followers","following_url":"https://api.github.com/users/deakolt/following{/other_user}","gists_url":"https://api.github.com/users/deakolt/gists{/gist_id}","starred_url":"https://api.github.com/users/deakolt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deakolt/subscriptions","organizations_url":"https://api.github.com/users/deakolt/orgs","repos_url":"https://api.github.com/users/deakolt/repos","events_url":"https://api.github.com/users/deakolt/events{/privacy}","received_events_url":"https://api.github.com/users/deakolt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/deakolt/farcy","description":"A code review bot for github pull requests.","fork":true,"url":"https://api.github.com/repos/deakolt/farcy","forks_url":"https://api.github.com/repos/deakolt/farcy/forks","keys_url":"https://api.github.com/repos/deakolt/farcy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/deakolt/farcy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/deakolt/farcy/teams","hooks_url":"https://api.github.com/repos/deakolt/farcy/hooks","issue_events_url":"https://api.github.com/repos/deakolt/farcy/issues/events{/number}","events_url":"https://api.github.com/repos/deakolt/farcy/events","assignees_url":"https://api.github.com/repos/deakolt/farcy/assignees{/user}","branches_url":"https://api.github.com/repos/deakolt/farcy/branches{/branch}","tags_url":"https://api.github.com/repos/deakolt/farcy/tags","blobs_url":"https://api.github.com/repos/deakolt/farcy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/deakolt/farcy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/deakolt/farcy/git/refs{/sha}","trees_url":"https://api.github.com/repos/deakolt/farcy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/deakolt/farcy/statuses/{sha}","languages_url":"https://api.github.com/repos/deakolt/farcy/languages","stargazers_url":"https://api.github.com/repos/deakolt/farcy/stargazers","contributors_url":"https://api.github.com/repos/deakolt/farcy/contributors","subscribers_url":"https://api.github.com/repos/deakolt/farcy/subscribers","subscription_url":"https://api.github.com/repos/deakolt/farcy/subscription","commits_url":"https://api.github.com/repos/deakolt/farcy/commits{/sha}","git_commits_url":"https://api.github.com/repos/deakolt/farcy/git/commits{/sha}","comments_url":"https://api.github.com/repos/deakolt/farcy/comments{/number}","issue_comment_url":"https://api.github.com/repos/deakolt/farcy/issues/comments{/number}","contents_url":"https://api.github.com/repos/deakolt/farcy/contents/{+path}","compare_url":"https://api.github.com/repos/deakolt/farcy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/deakolt/farcy/merges","archive_url":"https://api.github.com/repos/deakolt/farcy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/deakolt/farcy/downloads","issues_url":"https://api.github.com/repos/deakolt/farcy/issues{/number}","pulls_url":"https://api.github.com/repos/deakolt/farcy/pulls{/number}","milestones_url":"https://api.github.com/repos/deakolt/farcy/milestones{/number}","notifications_url":"https://api.github.com/repos/deakolt/farcy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/deakolt/farcy/labels{/name}","releases_url":"https://api.github.com/repos/deakolt/farcy/releases{/id}","created_at":"2015-12-14T19:20:20Z","updated_at":"2015-12-14T19:20:21Z","pushed_at":"2015-12-18T20:35:44Z","git_url":"git://github.com/deakolt/farcy.git","ssh_url":"git@github.com:deakolt/farcy.git","clone_url":"https://github.com/deakolt/farcy.git","svn_url":"https://github.com/deakolt/farcy","homepage":"https://farcy.readthedocs.org/","size":215,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"appfolio:master","ref":"master","sha":"41a21272347038069b86df9576d945550b9c0808","user":{"login":"appfolio","id":115119,"avatar_url":"https://avatars.githubusercontent.com/u/115119?v=3","gravatar_id":"","url":"https://api.github.com/users/appfolio","html_url":"https://github.com/appfolio","followers_url":"https://api.github.com/users/appfolio/followers","following_url":"https://api.github.com/users/appfolio/following{/other_user}","gists_url":"https://api.github.com/users/appfolio/gists{/gist_id}","starred_url":"https://api.github.com/users/appfolio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appfolio/subscriptions","organizations_url":"https://api.github.com/users/appfolio/orgs","repos_url":"https://api.github.com/users/appfolio/repos","events_url":"https://api.github.com/users/appfolio/events{/privacy}","received_events_url":"https://api.github.com/users/appfolio/received_events","type":"Organization","site_admin":false},"repo":{"id":27614362,"name":"farcy","full_name":"appfolio/farcy","owner":{"login":"appfolio","id":115119,"avatar_url":"https://avatars.githubusercontent.com/u/115119?v=3","gravatar_id":"","url":"https://api.github.com/users/appfolio","html_url":"https://github.com/appfolio","followers_url":"https://api.github.com/users/appfolio/followers","following_url":"https://api.github.com/users/appfolio/following{/other_user}","gists_url":"https://api.github.com/users/appfolio/gists{/gist_id}","starred_url":"https://api.github.com/users/appfolio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appfolio/subscriptions","organizations_url":"https://api.github.com/users/appfolio/orgs","repos_url":"https://api.github.com/users/appfolio/repos","events_url":"https://api.github.com/users/appfolio/events{/privacy}","received_events_url":"https://api.github.com/users/appfolio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/appfolio/farcy","description":"A code review bot for github pull requests.","fork":false,"url":"https://api.github.com/repos/appfolio/farcy","forks_url":"https://api.github.com/repos/appfolio/farcy/forks","keys_url":"https://api.github.com/repos/appfolio/farcy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/appfolio/farcy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/appfolio/farcy/teams","hooks_url":"https://api.github.com/repos/appfolio/farcy/hooks","issue_events_url":"https://api.github.com/repos/appfolio/farcy/issues/events{/number}","events_url":"https://api.github.com/repos/appfolio/farcy/events","assignees_url":"https://api.github.com/repos/appfolio/farcy/assignees{/user}","branches_url":"https://api.github.com/repos/appfolio/farcy/branches{/branch}","tags_url":"https://api.github.com/repos/appfolio/farcy/tags","blobs_url":"https://api.github.com/repos/appfolio/farcy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/appfolio/farcy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/appfolio/farcy/git/refs{/sha}","trees_url":"https://api.github.com/repos/appfolio/farcy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/appfolio/farcy/statuses/{sha}","languages_url":"https://api.github.com/repos/appfolio/farcy/languages","stargazers_url":"https://api.github.com/repos/appfolio/farcy/stargazers","contributors_url":"https://api.github.com/repos/appfolio/farcy/contributors","subscribers_url":"https://api.github.com/repos/appfolio/farcy/subscribers","subscription_url":"https://api.github.com/repos/appfolio/farcy/subscription","commits_url":"https://api.github.com/repos/appfolio/farcy/commits{/sha}","git_commits_url":"https://api.github.com/repos/appfolio/farcy/git/commits{/sha}","comments_url":"https://api.github.com/repos/appfolio/farcy/comments{/number}","issue_comment_url":"https://api.github.com/repos/appfolio/farcy/issues/comments{/number}","contents_url":"https://api.github.com/repos/appfolio/farcy/contents/{+path}","compare_url":"https://api.github.com/repos/appfolio/farcy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/appfolio/farcy/merges","archive_url":"https://api.github.com/repos/appfolio/farcy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/appfolio/farcy/downloads","issues_url":"https://api.github.com/repos/appfolio/farcy/issues{/number}","pulls_url":"https://api.github.com/repos/appfolio/farcy/pulls{/number}","milestones_url":"https://api.github.com/repos/appfolio/farcy/milestones{/number}","notifications_url":"https://api.github.com/repos/appfolio/farcy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/appfolio/farcy/labels{/name}","releases_url":"https://api.github.com/repos/appfolio/farcy/releases{/id}","created_at":"2014-12-05T23:15:15Z","updated_at":"2015-12-11T00:45:43Z","pushed_at":"2015-12-18T20:35:44Z","git_url":"git://github.com/appfolio/farcy.git","ssh_url":"git@github.com:appfolio/farcy.git","clone_url":"https://github.com/appfolio/farcy.git","svn_url":"https://github.com/appfolio/farcy","homepage":"https://farcy.readthedocs.org/","size":210,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":11,"forks":3,"open_issues":11,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/appfolio/farcy/pulls/100"},"html":{"href":"https://github.com/appfolio/farcy/pull/100"},"issue":{"href":"https://api.github.com/repos/appfolio/farcy/issues/100"},"comments":{"href":"https://api.github.com/repos/appfolio/farcy/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/appfolio/farcy/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/appfolio/farcy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/appfolio/farcy/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/appfolio/farcy/statuses/6a97af7100d13af15bf30e30a78c76452b97007f"}}}}