Skip to content
Snippets Groups Projects
Commit f870d605 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

formula_installer: handle post_install exceptions.

Warn users and point them to `brew postinstall` (which can provide a
backtrace).

Closes Homebrew/homebrew#21887.
parent 626b56f9
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment