formula_installer: output postinstall failures for developers.

This message is pretty useless without a backtrace.
This commit is contained in:
Mike McQuaid 2018-11-11 10:01:16 +00:00
parent a8aed381ca
commit dd22198b59
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -922,7 +922,7 @@ class FormulaInstaller
rescue Exception => e # rubocop:disable Lint/RescueException rescue Exception => e # rubocop:disable Lint/RescueException
opoo "The post-install step did not complete successfully" opoo "The post-install step did not complete successfully"
puts "You can try again using `brew postinstall #{formula.full_name}`" puts "You can try again using `brew postinstall #{formula.full_name}`"
ohai e, e.backtrace if debug? ohai e, e.backtrace if debug? || ARGV.homebrew_developer?
Homebrew.failed = true Homebrew.failed = true
@show_summary_heading = true @show_summary_heading = true
end end