{"action":"created","comment":{"url":"https://api.github.com/repos/kern/minitest-reporters/pulls/comments/32850157","id":32850157,"diff_hunk":"@@ -86,8 +86,12 @@ def print(*args)\n       end\n \n       def print_info(e, name=true)\n-        print \"#{e.exception.class.to_s}: \" if name\n-        e.message.each_line { |line| print_with_info_padding(line) }\n+        if name\n+          print \"#{e.exception.class.to_s}: \"\n+          e.exception.message.each_line { |line| print_with_info_padding(line) }\n+        else\n+          e.message.each_line { |line| print_with_info_padding(line) }","path":"lib/minitest/reporters/base_reporter.rb","position":null,"original_position":10,"commit_id":"28c2574c5ce44e8858ea2dbcfc6724095ce577f6","original_commit_id":"31fb13bbeccc1aa5b97dd8d5ead8df8fb6ff438f","user":{"login":"gauravmc","id":1014540,"avatar_url":"https://avatars.githubusercontent.com/u/1014540?v=3","gravatar_id":"","url":"https://api.github.com/users/gauravmc","html_url":"https://github.com/gauravmc","followers_url":"https://api.github.com/users/gauravmc/followers","following_url":"https://api.github.com/users/gauravmc/following{/other_user}","gists_url":"https://api.github.com/users/gauravmc/gists{/gist_id}","starred_url":"https://api.github.com/users/gauravmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauravmc/subscriptions","organizations_url":"https://api.github.com/users/gauravmc/orgs","repos_url":"https://api.github.com/users/gauravmc/repos","events_url":"https://api.github.com/users/gauravmc/events{/privacy}","received_events_url":"https://api.github.com/users/gauravmc/received_events","type":"User","site_admin":false},"body":"Had thought about it.. little shitty checking for `e`'s class like that, but I'm okay coz `print_info` may as well have been used as you mentioned. Code updated. Lets merge it soon! Seeing exception backtrance printed twice each time is driving me crazy (esp. for long backtraces)..","created_at":"2015-06-19T17:26:28Z","updated_at":"2015-06-19T17:26:28Z","html_url":"https://github.com/kern/minitest-reporters/pull/157#discussion_r32850157","pull_request_url":"https://api.github.com/repos/kern/minitest-reporters/pulls/157","_links":{"self":{"href":"https://api.github.com/repos/kern/minitest-reporters/pulls/comments/32850157"},"html":{"href":"https://github.com/kern/minitest-reporters/pull/157#discussion_r32850157"},"pull_request":{"href":"https://api.github.com/repos/kern/minitest-reporters/pulls/157"}}},"pull_request":{"url":"https://api.github.com/repos/kern/minitest-reporters/pulls/157","id":36540016,"html_url":"https://github.com/kern/minitest-reporters/pull/157","diff_url":"https://github.com/kern/minitest-reporters/pull/157.diff","patch_url":"https://github.com/kern/minitest-reporters/pull/157.patch","issue_url":"https://api.github.com/repos/kern/minitest-reporters/issues/157","number":157,"state":"open","locked":false,"title":"Quit printing exception backtrace twice","user":{"login":"gauravmc","id":1014540,"avatar_url":"https://avatars.githubusercontent.com/u/1014540?v=3","gravatar_id":"","url":"https://api.github.com/users/gauravmc","html_url":"https://github.com/gauravmc","followers_url":"https://api.github.com/users/gauravmc/followers","following_url":"https://api.github.com/users/gauravmc/following{/other_user}","gists_url":"https://api.github.com/users/gauravmc/gists{/gist_id}","starred_url":"https://api.github.com/users/gauravmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauravmc/subscriptions","organizations_url":"https://api.github.com/users/gauravmc/orgs","repos_url":"https://api.github.com/users/gauravmc/repos","events_url":"https://api.github.com/users/gauravmc/events{/privacy}","received_events_url":"https://api.github.com/users/gauravmc/received_events","type":"User","site_admin":false},"body":"This makes it so that exception backtrace is printed to stdout only once. Looks like this annoying problem has been around for some time. More info inline.\r\n\r\n@os97673 @grosser","created_at":"2015-05-29T20:03:25Z","updated_at":"2015-06-19T17:26:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"da81de26e6a6ea2094052fc25d7865365f33981c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kern/minitest-reporters/pulls/157/commits","review_comments_url":"https://api.github.com/repos/kern/minitest-reporters/pulls/157/comments","review_comment_url":"https://api.github.com/repos/kern/minitest-reporters/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kern/minitest-reporters/issues/157/comments","statuses_url":"https://api.github.com/repos/kern/minitest-reporters/statuses/28c2574c5ce44e8858ea2dbcfc6724095ce577f6","head":{"label":"gauravmc:master","ref":"master","sha":"28c2574c5ce44e8858ea2dbcfc6724095ce577f6","user":{"login":"gauravmc","id":1014540,"avatar_url":"https://avatars.githubusercontent.com/u/1014540?v=3","gravatar_id":"","url":"https://api.github.com/users/gauravmc","html_url":"https://github.com/gauravmc","followers_url":"https://api.github.com/users/gauravmc/followers","following_url":"https://api.github.com/users/gauravmc/following{/other_user}","gists_url":"https://api.github.com/users/gauravmc/gists{/gist_id}","starred_url":"https://api.github.com/users/gauravmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauravmc/subscriptions","organizations_url":"https://api.github.com/users/gauravmc/orgs","repos_url":"https://api.github.com/users/gauravmc/repos","events_url":"https://api.github.com/users/gauravmc/events{/privacy}","received_events_url":"https://api.github.com/users/gauravmc/received_events","type":"User","site_admin":false},"repo":{"id":36525613,"name":"minitest-reporters","full_name":"gauravmc/minitest-reporters","owner":{"login":"gauravmc","id":1014540,"avatar_url":"https://avatars.githubusercontent.com/u/1014540?v=3","gravatar_id":"","url":"https://api.github.com/users/gauravmc","html_url":"https://github.com/gauravmc","followers_url":"https://api.github.com/users/gauravmc/followers","following_url":"https://api.github.com/users/gauravmc/following{/other_user}","gists_url":"https://api.github.com/users/gauravmc/gists{/gist_id}","starred_url":"https://api.github.com/users/gauravmc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gauravmc/subscriptions","organizations_url":"https://api.github.com/users/gauravmc/orgs","repos_url":"https://api.github.com/users/gauravmc/repos","events_url":"https://api.github.com/users/gauravmc/events{/privacy}","received_events_url":"https://api.github.com/users/gauravmc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gauravmc/minitest-reporters","description":"Create customizable MiniTest output formats.","fork":true,"url":"https://api.github.com/repos/gauravmc/minitest-reporters","forks_url":"https://api.github.com/repos/gauravmc/minitest-reporters/forks","keys_url":"https://api.github.com/repos/gauravmc/minitest-reporters/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gauravmc/minitest-reporters/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gauravmc/minitest-reporters/teams","hooks_url":"https://api.github.com/repos/gauravmc/minitest-reporters/hooks","issue_events_url":"https://api.github.com/repos/gauravmc/minitest-reporters/issues/events{/number}","events_url":"https://api.github.com/repos/gauravmc/minitest-reporters/events","assignees_url":"https://api.github.com/repos/gauravmc/minitest-reporters/assignees{/user}","branches_url":"https://api.github.com/repos/gauravmc/minitest-reporters/branches{/branch}","tags_url":"https://api.github.com/repos/gauravmc/minitest-reporters/tags","blobs_url":"https://api.github.com/repos/gauravmc/minitest-reporters/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gauravmc/minitest-reporters/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gauravmc/minitest-reporters/git/refs{/sha}","trees_url":"https://api.github.com/repos/gauravmc/minitest-reporters/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gauravmc/minitest-reporters/statuses/{sha}","languages_url":"https://api.github.com/repos/gauravmc/minitest-reporters/languages","stargazers_url":"https://api.github.com/repos/gauravmc/minitest-reporters/stargazers","contributors_url":"https://api.github.com/repos/gauravmc/minitest-reporters/contributors","subscribers_url":"https://api.github.com/repos/gauravmc/minitest-reporters/subscribers","subscription_url":"https://api.github.com/repos/gauravmc/minitest-reporters/subscription","commits_url":"https://api.github.com/repos/gauravmc/minitest-reporters/commits{/sha}","git_commits_url":"https://api.github.com/repos/gauravmc/minitest-reporters/git/commits{/sha}","comments_url":"https://api.github.com/repos/gauravmc/minitest-reporters/comments{/number}","issue_comment_url":"https://api.github.com/repos/gauravmc/minitest-reporters/issues/comments{/number}","contents_url":"https://api.github.com/repos/gauravmc/minitest-reporters/contents/{+path}","compare_url":"https://api.github.com/repos/gauravmc/minitest-reporters/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gauravmc/minitest-reporters/merges","archive_url":"https://api.github.com/repos/gauravmc/minitest-reporters/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gauravmc/minitest-reporters/downloads","issues_url":"https://api.github.com/repos/gauravmc/minitest-reporters/issues{/number}","pulls_url":"https://api.github.com/repos/gauravmc/minitest-reporters/pulls{/number}","milestones_url":"https://api.github.com/repos/gauravmc/minitest-reporters/milestones{/number}","notifications_url":"https://api.github.com/repos/gauravmc/minitest-reporters/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gauravmc/minitest-reporters/labels{/name}","releases_url":"https://api.github.com/repos/gauravmc/minitest-reporters/releases{/id}","created_at":"2015-05-29T19:49:21Z","updated_at":"2015-05-29T19:49:21Z","pushed_at":"2015-06-19T17:24:36Z","git_url":"git://github.com/gauravmc/minitest-reporters.git","ssh_url":"git@github.com:gauravmc/minitest-reporters.git","clone_url":"https://github.com/gauravmc/minitest-reporters.git","svn_url":"https://github.com/gauravmc/minitest-reporters","homepage":"https://github.com/kern/minitest-reporters","size":479,"stargazers_count":0,"watchers_count":0,"language":"Ruby","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":"kern:master","ref":"master","sha":"a77d1c0c048386b8f1f755c608bd1d6625ad79bb","user":{"login":"kern","id":11469,"avatar_url":"https://avatars.githubusercontent.com/u/11469?v=3","gravatar_id":"","url":"https://api.github.com/users/kern","html_url":"https://github.com/kern","followers_url":"https://api.github.com/users/kern/followers","following_url":"https://api.github.com/users/kern/following{/other_user}","gists_url":"https://api.github.com/users/kern/gists{/gist_id}","starred_url":"https://api.github.com/users/kern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kern/subscriptions","organizations_url":"https://api.github.com/users/kern/orgs","repos_url":"https://api.github.com/users/kern/repos","events_url":"https://api.github.com/users/kern/events{/privacy}","received_events_url":"https://api.github.com/users/kern/received_events","type":"User","site_admin":false},"repo":{"id":1797133,"name":"minitest-reporters","full_name":"kern/minitest-reporters","owner":{"login":"kern","id":11469,"avatar_url":"https://avatars.githubusercontent.com/u/11469?v=3","gravatar_id":"","url":"https://api.github.com/users/kern","html_url":"https://github.com/kern","followers_url":"https://api.github.com/users/kern/followers","following_url":"https://api.github.com/users/kern/following{/other_user}","gists_url":"https://api.github.com/users/kern/gists{/gist_id}","starred_url":"https://api.github.com/users/kern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kern/subscriptions","organizations_url":"https://api.github.com/users/kern/orgs","repos_url":"https://api.github.com/users/kern/repos","events_url":"https://api.github.com/users/kern/events{/privacy}","received_events_url":"https://api.github.com/users/kern/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kern/minitest-reporters","description":"Create customizable MiniTest output formats.","fork":false,"url":"https://api.github.com/repos/kern/minitest-reporters","forks_url":"https://api.github.com/repos/kern/minitest-reporters/forks","keys_url":"https://api.github.com/repos/kern/minitest-reporters/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kern/minitest-reporters/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kern/minitest-reporters/teams","hooks_url":"https://api.github.com/repos/kern/minitest-reporters/hooks","issue_events_url":"https://api.github.com/repos/kern/minitest-reporters/issues/events{/number}","events_url":"https://api.github.com/repos/kern/minitest-reporters/events","assignees_url":"https://api.github.com/repos/kern/minitest-reporters/assignees{/user}","branches_url":"https://api.github.com/repos/kern/minitest-reporters/branches{/branch}","tags_url":"https://api.github.com/repos/kern/minitest-reporters/tags","blobs_url":"https://api.github.com/repos/kern/minitest-reporters/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kern/minitest-reporters/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kern/minitest-reporters/git/refs{/sha}","trees_url":"https://api.github.com/repos/kern/minitest-reporters/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kern/minitest-reporters/statuses/{sha}","languages_url":"https://api.github.com/repos/kern/minitest-reporters/languages","stargazers_url":"https://api.github.com/repos/kern/minitest-reporters/stargazers","contributors_url":"https://api.github.com/repos/kern/minitest-reporters/contributors","subscribers_url":"https://api.github.com/repos/kern/minitest-reporters/subscribers","subscription_url":"https://api.github.com/repos/kern/minitest-reporters/subscription","commits_url":"https://api.github.com/repos/kern/minitest-reporters/commits{/sha}","git_commits_url":"https://api.github.com/repos/kern/minitest-reporters/git/commits{/sha}","comments_url":"https://api.github.com/repos/kern/minitest-reporters/comments{/number}","issue_comment_url":"https://api.github.com/repos/kern/minitest-reporters/issues/comments{/number}","contents_url":"https://api.github.com/repos/kern/minitest-reporters/contents/{+path}","compare_url":"https://api.github.com/repos/kern/minitest-reporters/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kern/minitest-reporters/merges","archive_url":"https://api.github.com/repos/kern/minitest-reporters/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kern/minitest-reporters/downloads","issues_url":"https://api.github.com/repos/kern/minitest-reporters/issues{/number}","pulls_url":"https://api.github.com/repos/kern/minitest-reporters/pulls{/number}","milestones_url":"https://api.github.com/repos/kern/minitest-reporters/milestones{/number}","notifications_url":"https://api.github.com/repos/kern/minitest-reporters/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kern/minitest-reporters/labels{/name}","releases_url":"https://api.github.com/repos/kern/minitest-reporters/releases{/id}","created_at":"2011-05-25T03:47:32Z","updated_at":"2015-06-18T08:20:48Z","pushed_at":"2015-06-19T17:24:37Z","git_url":"git://github.com/kern/minitest-reporters.git","ssh_url":"git@github.com:kern/minitest-reporters.git","clone_url":"https://github.com/kern/minitest-reporters.git","svn_url":"https://github.com/kern/minitest-reporters","homepage":"https://github.com/kern/minitest-reporters","size":1515,"stargazers_count":327,"watchers_count":327,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":93,"mirror_url":null,"open_issues_count":7,"forks":93,"open_issues":7,"watchers":327,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kern/minitest-reporters/pulls/157"},"html":{"href":"https://github.com/kern/minitest-reporters/pull/157"},"issue":{"href":"https://api.github.com/repos/kern/minitest-reporters/issues/157"},"comments":{"href":"https://api.github.com/repos/kern/minitest-reporters/issues/157/comments"},"review_comments":{"href":"https://api.github.com/repos/kern/minitest-reporters/pulls/157/comments"},"review_comment":{"href":"https://api.github.com/repos/kern/minitest-reporters/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kern/minitest-reporters/pulls/157/commits"},"statuses":{"href":"https://api.github.com/repos/kern/minitest-reporters/statuses/28c2574c5ce44e8858ea2dbcfc6724095ce577f6"}}}}