Merge pull request #19819 from Homebrew/macho-error-output

formula_installer: always output errors with fixing linkage
This commit is contained in:
Bo Anderson 2025-04-24 16:31:58 +00:00 committed by GitHub
commit 6fe715409b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1222,11 +1222,12 @@ on_request: installed_on_request?, options:)
# Rescue all possible exceptions when fixing linkage. # Rescue all possible exceptions when fixing linkage.
rescue Exception => e # rubocop:disable Lint/RescueException rescue Exception => e # rubocop:disable Lint/RescueException
ofail "Failed to fix install linkage" ofail "Failed to fix install linkage"
puts e
puts "The formula built, but you may encounter issues using it or linking other" puts "The formula built, but you may encounter issues using it or linking other"
puts "formulae against it." puts "formulae against it."
require "utils/backtrace" require "utils/backtrace"
odebug e, Utils::Backtrace.clean(e) odebug "Backtrace", Utils::Backtrace.clean(e)
@show_summary_heading = true @show_summary_heading = true
end end