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|
|
@f.recursive_deps.each do |dep|
|
||||||
FormulaInstaller.install_formula dep unless dep.installed?
|
FormulaInstaller.install_formula dep unless dep.installed?
|
||||||
end
|
end
|
||||||
FormulaInstaller.check_external_deps @f
|
begin
|
||||||
|
FormulaInstaller.check_external_deps @f
|
||||||
|
rescue UnsatisfiedExternalDependencyError => e
|
||||||
|
onoe e.message
|
||||||
|
exit! 1
|
||||||
|
end
|
||||||
end
|
end
|
||||||
FormulaInstaller.install_formula @f
|
FormulaInstaller.install_formula @f
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user