From 83af084079d8c334ad346ae6baf8e5135e65057a Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 5 Nov 2016 10:40:07 -0400 Subject: [PATCH] exceptions: use specific build error checks. --- Library/Homebrew/exceptions.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 7aecbe494f..834ef91aca 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