Merge pull request #19206 from Homebrew/concurrent-downloads-errors

Print concurrent download errors.
This commit is contained in:
Mike McQuaid 2025-02-03 13:56:39 +00:00 committed by GitHub
commit 19f15aced2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -256,10 +256,17 @@ module Homebrew
$stdout.print "#{status} #{message}#{"\n" unless last}"
$stdout.flush
if future.rejected? && (e = future.reason).is_a?(ChecksumMismatchError)
if future.rejected?
if (e = future.reason).is_a?(ChecksumMismatchError)
opoo "#{downloadable.download_type.capitalize} reports different checksum: #{e.expected}"
Homebrew.failed = true if downloadable.is_a?(Resource::Patch)
next 2
else
message = future.reason.to_s
onoe message
Homebrew.failed = true
next message.count("\n")
end
end
1