Merge pull request #4538 from MikeMcQuaid/audit-new-formula-issue-comment-exception-warning

audit: output new formula issue comment failure message.
This commit is contained in:
Mike McQuaid 2018-07-23 19:53:59 +01:00 committed by GitHub
commit 994593505e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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