Merge pull request #1559 from MikeMcQuaid/unsupported-better-exceptions

exceptions: better handle unsupported macOS versions.
This commit is contained in:
Mike McQuaid 2016-11-24 21:15:39 +00:00 committed by GitHub
commit 62e0ecdaaf

View File

@ -356,7 +356,7 @@ class BuildError < RuntimeError
return
end
if formula.tap
if formula.tap && defined?(OS::ISSUES_URL)
if formula.tap.official?
puts Formatter.error(Formatter.url(OS::ISSUES_URL), label: "READ THIS")
elsif issues_url = formula.tap.issues_url