From 3c77faeb14886c30f8440c29101c6944aaf0bbdb Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Thu, 24 Nov 2016 08:54:24 +0000 Subject: [PATCH] exceptions: better handle unsupported macOS versions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don’t fail on `OS::ISSUES_URL` being missing (which happens on unsupported macOS versions) and instead tell people to not file issues. --- Library/Homebrew/exceptions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 3d9b24034f..c2b78f8787 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