Skip to content
Snippets Groups Projects
Commit 3c77faeb authored by Mike McQuaid's avatar Mike McQuaid
Browse files

exceptions: better handle unsupported macOS versions.

Don’t fail on `OS::ISSUES_URL` being missing (which happens on
unsupported macOS versions) and instead tell people to not file issues.
parent 17bad9ac
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment