lib/cloudinary/carrier_wave/preloaded.rb in cloudinary-1.0.41 vs lib/cloudinary/carrier_wave/preloaded.rb in cloudinary-1.0.42

- old
+ new

@@ -36,10 +36,10 @@ end class PreloadedCloudinaryFile < Cloudinary::PreloadedFile def initialize(file_info) super - raise "Cloudinary CarrierWave integration only supports uploaded images" if resource_type != "image" || type != "upload" + raise CloudinaryException, "Cloudinary CarrierWave integration only supports uploaded images" if resource_type != "image" || type != "upload" if !valid? raise CarrierWave::IntegrityError, I18n.translate(:"errors.messages.cloudinary_signature_error", :public_id=>public_id, :default=>"Invalid signature for #{public_id}") end end \ No newline at end of file