diff options
| author | George Kulakowski | 2011-02-20 12:20:07 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-12 11:55:10 -0800 |
| commit | 79f9242ce646e2928ab70d8e4b227601e2c1fbea (patch) | |
| tree | ebe8b7f281fe3a6a27bed59276943b315cf421e5 /Library | |
| parent | 36e3fbf840ec73468c39aaf12f4e98f17f28831e (diff) | |
| download | homebrew-79f9242ce646e2928ab70d8e4b227601e2c1fbea.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')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 7 |
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 |
