aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-11-24 08:54:24 +0000
committerMike McQuaid2016-11-24 08:54:38 +0000
commit3c77faeb14886c30f8440c29101c6944aaf0bbdb (patch)
tree696507076aec02822f3f64750dea400d881c3293 /Library/Homebrew/exceptions.rb
parent17bad9ac59ada6d3d1cc70246f39730131d7f310 (diff)
downloadbrew-3c77faeb14886c30f8440c29101c6944aaf0bbdb.tar.bz2
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.
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
-rw-r--r--Library/Homebrew/exceptions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index 3d9b24034..c2b78f878 100644
--- a/Library/Homebrew/exceptions.rb
+++ b/Library/Homebrew/exceptions.rb
@@ -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