Require utils/backtrace when install fails

This commit is contained in:
Rylan Polster 2024-07-14 14:37:30 -04:00
parent c751dce464
commit 5030ad6f28
No known key found for this signature in database
GPG Key ID: 46A744940CFF4D64

View File

@ -338,6 +338,8 @@ module Homebrew
Homebrew.messages.display_messages(display_times: args.display_times?) Homebrew.messages.display_messages(display_times: args.display_times?)
rescue FormulaUnreadableError, FormulaClassUnavailableError, rescue FormulaUnreadableError, FormulaClassUnavailableError,
TapFormulaUnreadableError, TapFormulaClassUnavailableError => e TapFormulaUnreadableError, TapFormulaClassUnavailableError => e
require "utils/backtrace"
# Need to rescue before `FormulaUnavailableError` (superclass of this) # Need to rescue before `FormulaUnavailableError` (superclass of this)
# is handled, as searching for a formula doesn't make sense here (the # is handled, as searching for a formula doesn't make sense here (the
# formula was found, but there's a problem with its implementation). # formula was found, but there's a problem with its implementation).