aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorGeorge Kulakowski2011-02-20 12:20:07 -0500
committerAdam Vandenberg2011-03-12 11:55:10 -0800
commit14d14fa69a106cc5b0a87bf3eaa3c6855cce5e84 (patch)
tree99c5ae44005956b7cdbc68180e2f2c57ebbe0cc0 /Library/Homebrew
parent9ed51082c276ef4c6e24f92be266fe0394797746 (diff)
downloadbrew-14d14fa69a106cc5b0a87bf3eaa3c6855cce5e84.tar.bz2
Fix UnsatisfiedExternalDependencyError
The refactor branch doesn't catch the UEDE and print the error message containing information about which dependency and how to install it. This adds back that logic. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formula_installer.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 497f2a2ef..1e5d402ec 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