mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #19206 from Homebrew/concurrent-downloads-errors
Print concurrent download errors.
This commit is contained in:
commit
19f15aced2
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user