diff options
| author | Mike McQuaid | 2013-09-01 13:57:24 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-09-01 13:57:40 +0100 |
| commit | f870d605fac5ac2f1b68f3bfea274242cccedcea (patch) | |
| tree | 0c22073f16252788ed081c97197d1d9325a180f1 | |
| parent | 626b56f9f6ad913f723b8fef3c5f515b7c4a3817 (diff) | |
| download | brew-f870d605fac5ac2f1b68f3bfea274242cccedcea.tar.bz2 | |
formula_installer: handle post_install exceptions.
Warn users and point them to `brew postinstall` (which can provide a
backtrace).
Closes Homebrew/homebrew#21887.
| -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 |
