audit: output new formula issue comment failure message.

This should help debug when this fails to be created.
This commit is contained in:
Mike McQuaid 2018-07-23 19:32:07 +01:00
parent d6a245c051
commit 0fe1f01e41

View File

@ -143,8 +143,8 @@ module Homebrew
if GitHub.create_issue_comment(new_formula_problem_lines.join("\n")) if GitHub.create_issue_comment(new_formula_problem_lines.join("\n"))
created_pr_comment = true created_pr_comment = true
end end
rescue *GitHub.api_errors rescue *GitHub.api_errors => e
nil opoo "Unable to create issue comment: #{e.message}"
end end
end end