Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove unnecessary wording

  • Loading branch information...
commit 9b66c4f4a9249398db3984205853706fa770a016 1 parent d86a74b
@bensie bensie authored
View
2  lib/carrierwave/uploader/download.rb
@@ -38,7 +38,7 @@ def file
@file
rescue Exception => e
- raise CarrierWave::DownloadError, "could not download file cause: #{e.message}"
+ raise CarrierWave::DownloadError, "could not download file: #{e.message}"
end
def method_missing(*args, &block)
View
2  spec/uploader/download_spec.rb
@@ -105,7 +105,7 @@
it 'should not obscure original exception message' do
expect {
@uploader.download!('http://www.example.com/missing.jpg')
- }.to raise_error(CarrierWave::DownloadError, 'could not download file cause: 404 ')
+ }.to raise_error(CarrierWave::DownloadError, 'could not download file: 404 ')
end
describe '#download! with an extension_white_list' do
Please sign in to comment.
Something went wrong with that request. Please try again.