diff options
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index adb17fe57..3791762c0 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -251,10 +251,9 @@ class BuildError < RuntimeError puts issues.map { |i| "#{i["title"]} #{i["html_url"]}" }.join("\n") end - if OS::Mac.prerelease? - require "cmd/doctor" - opoo Checks.new.check_for_unsupported_osx - end + require "cmd/doctor" + unsupported_osx = Checks.new.check_for_unsupported_osx + opoo unsupported_osx if unsupported_osx end end |
