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>
This commit is contained in:
George Kulakowski 2011-02-20 12:20:07 -05:00 committed by Adam Vandenberg
parent 9ed51082c2
commit 14d14fa69a

View File

@ -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