aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
diff options
context:
space:
mode:
authorJack Nagel2015-06-16 20:02:10 -0400
committerJack Nagel2015-06-16 20:02:10 -0400
commit72cb403a56be7cae3cc385b83a6d6b6071c8b41f (patch)
tree8550b658e751ba54e77ca1d217aeb8a2e6edd6b3 /Library/Homebrew/exceptions.rb
parentf59b164733bcb1edb5644eac9733201a5e53cb86 (diff)
downloadbrew-72cb403a56be7cae3cc385b83a6d6b6071c8b41f.tar.bz2
Move 10.11 warning to doctor, pre-install, and post-failure
Fixes Homebrew/homebrew#40778.
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
-rw-r--r--Library/Homebrew/exceptions.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index 7eb053a7c..bad8d2c2d 100644
--- a/Library/Homebrew/exceptions.rb
+++ b/Library/Homebrew/exceptions.rb
@@ -216,6 +216,11 @@ class BuildError < RuntimeError
puts "These open issues may also help:"
puts issues.map{ |i| "#{i['title']} (#{i['html_url']})" }.join("\n")
end
+
+ if MacOS.version >= "10.11"
+ require "cmd/doctor"
+ opoo Checks.new.check_for_unsupported_osx
+ end
end
end