diff options
| author | Mike McQuaid | 2016-11-24 08:54:24 +0000 | 
|---|---|---|
| committer | Mike McQuaid | 2016-11-24 08:54:38 +0000 | 
| commit | 3c77faeb14886c30f8440c29101c6944aaf0bbdb (patch) | |
| tree | 696507076aec02822f3f64750dea400d881c3293 /Library/Homebrew/exceptions.rb | |
| parent | 17bad9ac59ada6d3d1cc70246f39730131d7f310 (diff) | |
| download | brew-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.rb | 2 | 
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 | 
