exceptions: use specific build error checks.
This commit is contained in:
parent
262eaca56e
commit
83af084079
@ -367,8 +367,11 @@ class BuildError < RuntimeError
|
|||||||
end
|
end
|
||||||
|
|
||||||
require "diagnostic"
|
require "diagnostic"
|
||||||
unsupported_macos = Homebrew::Diagnostic::Checks.new.check_for_unsupported_macos
|
checks = Homebrew::Diagnostic::Checks.new
|
||||||
opoo unsupported_macos if unsupported_macos
|
checks.build_error_checks.each do |check|
|
||||||
|
next if out.nil?
|
||||||
|
ofail out
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user