aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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