aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-11-05 10:40:07 -0400
committerMike McQuaid2016-11-05 10:58:39 -0400
commit83af084079d8c334ad346ae6baf8e5135e65057a (patch)
tree463ddd8fc85f138653ff862475c1b9237bf8f7dc /Library/Homebrew/exceptions.rb
parent262eaca56e9efbb21a20be2fe83af563c9b9289e (diff)
downloadbrew-83af084079d8c334ad346ae6baf8e5135e65057a.tar.bz2
exceptions: use specific build error checks.
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
-rw-r--r--Library/Homebrew/exceptions.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index 7aecbe494..834ef91ac 100644
--- a/Library/Homebrew/exceptions.rb
+++ b/Library/Homebrew/exceptions.rb
@@ -367,8 +367,11 @@ class BuildError < RuntimeError
end
require "diagnostic"
- unsupported_macos = Homebrew::Diagnostic::Checks.new.check_for_unsupported_macos
- opoo unsupported_macos if unsupported_macos
+ checks = Homebrew::Diagnostic::Checks.new
+ checks.build_error_checks.each do |check|
+ next if out.nil?
+ ofail out
+ end
end
end