Merge pull request #17738 from Homebrew/require-backtrace

This commit is contained in:
Mike McQuaid 2024-07-14 14:51:40 -04:00 committed by GitHub
commit 3e8f2c8d98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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