diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 949eee233c..a6a3380bb1 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -198,11 +198,12 @@ end # Raised in Resource.fetch class DownloadError < RuntimeError - def initialize(resource, e) + def initialize(resource, cause) super <<-EOS.undent Failed to download resource #{resource.download_name.inspect} - #{e.message} + #{cause.message} EOS + set_backtrace(cause.backtrace) end end