diff options
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 949eee233..a6a3380bb 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 |
