FormulaInstaller: raise if pouring bottle failed and no Xcode/CLT installed

This commit is contained in:
Xu Cheng 2015-09-25 17:52:45 +08:00
parent be45e6a0c5
commit 5045fc95bf

View File

@ -190,6 +190,7 @@ class FormulaInstaller
@pour_failed = true
onoe e.message
opoo "Bottle installation failed: building from source."
raise BuildToolsError.new([formula]) unless MacOS.has_apple_developer_tools?
else
@poured_bottle = true
end