formula_installer: handle post_install exceptions.
Warn users and point them to `brew postinstall` (which can provide a backtrace). Closes Homebrew/homebrew#21887.
This commit is contained in:
parent
626b56f9f6
commit
f870d605fa
@ -118,7 +118,11 @@ class FormulaInstaller
|
||||
clean
|
||||
end
|
||||
|
||||
f.post_install
|
||||
begin
|
||||
f.post_install
|
||||
rescue
|
||||
opoo "#{f.name} post_install failed. Rerun with `brew postinstall #{f.name}`."
|
||||
end
|
||||
|
||||
opoo "Nothing was installed to #{f.prefix}" unless f.installed?
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user