diff options
| author | Jack Nagel | 2014-02-18 15:08:03 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-02-18 15:08:03 -0500 | 
| commit | 95bdff9fa93217ce90a6bcb1e12112429ead45a7 (patch) | |
| tree | e9945e2f70bbb3230fde14bff77703064fbbe061 /Library/Homebrew/exceptions.rb | |
| parent | 011e49afb559156ec390edbcd398180aa6d1f708 (diff) | |
| download | homebrew-95bdff9fa93217ce90a6bcb1e12112429ead45a7.tar.bz2 | |
Tweak DownloadError message to include wrapped exception
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 7 | 
1 files changed, 5 insertions, 2 deletions
| diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 926407be7..f88b6fc57 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -231,8 +231,11 @@ end  # Raised in Resource.fetch  class DownloadError < RuntimeError -  def initialize(formula) -    super "Failed to download resource for package: #{formula}" +  def initialize(resource, e) +    super <<-EOS.undent +      Failed to download resource #{resource.download_name.inspect} +      #{e.message} +      EOS    end  end | 
