Print concurrent download errors.

This commit is contained in:
Markus Reiter 2025-02-03 14:40:48 +01:00
parent 791194865f
commit c03a351ab9
No known key found for this signature in database
GPG Key ID: 245293B51702655B

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)
opoo "#{downloadable.download_type.capitalize} reports different checksum: #{e.expected}"
Homebrew.failed = true if downloadable.is_a?(Resource::Patch)
next 2
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