diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 497f2a2ef4..1e5d402ecc 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -19,7 +19,12 @@ class FormulaInstaller @f.recursive_deps.each do |dep| FormulaInstaller.install_formula dep unless dep.installed? end - FormulaInstaller.check_external_deps @f + begin + FormulaInstaller.check_external_deps @f + rescue UnsatisfiedExternalDependencyError => e + onoe e.message + exit! 1 + end end FormulaInstaller.install_formula @f end