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:
parent
9ed51082c2
commit
14d14fa69a
@ -19,7 +19,12 @@ class FormulaInstaller
|
||||
@f.recursive_deps.each do |dep|
|
||||
FormulaInstaller.install_formula dep unless dep.installed?
|
||||
end
|
||||
begin
|
||||
FormulaInstaller.check_external_deps @f
|
||||
rescue UnsatisfiedExternalDependencyError => e
|
||||
onoe e.message
|
||||
exit! 1
|
||||
end
|
||||
end
|
||||
FormulaInstaller.install_formula @f
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user