aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Homebrew/formula_installer.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index 2d8d15b01..8201a1bc1 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