diff options
| author | Mike McQuaid | 2013-09-01 13:57:24 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-09-01 13:57:40 +0100 |
| commit | 1e69e28835a9bd2ae754dc5c2b0d09bd2df8b9bb (patch) | |
| tree | a140809e7b1e5be6536b70d59dc5d3b2e0b493b3 /Library/Homebrew | |
| parent | 456b955c9295cc45e4ed84dd43ed830c58d331b1 (diff) | |
| download | homebrew-1e69e28835a9bd2ae754dc5c2b0d09bd2df8b9bb.tar.bz2 | |
formula_installer: handle post_install exceptions.
Warn users and point them to `brew postinstall` (which can provide a
backtrace).
Closes #21887.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 6 |
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 |
