diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 2d8d15b016..8201a1bc1c 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -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