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

- old
+ new

@@ -49,11 +49,11 @@ process :tags=>tags end end def set_or_yell(hash, attr, value) - raise "conflicting transformation on #{attr} #{value}!=#{hash[attr]}" if hash[attr] && hash[attr] != value + raise CloudinaryException, "conflicting transformation on #{attr} #{value}!=#{hash[attr]}" if hash[attr] && hash[attr] != value hash[attr] = value end def transformation return @transformation if @transformation @@ -121,10 +121,10 @@ @eager ||= self.all_processors.any?{|processor| processor[0] == :eager} end def tags @tags ||= self.all_processors.select{|processor| processor[0] == :tags}.map(&:second).first - raise "tags cannot be used in versions." if @tags.present? && self.version_name.present? + raise CloudinaryException, "tags cannot be used in versions." if @tags.present? && self.version_name.present? @tags end def format format_processor = self.all_processors.find{|processor| processor[0] == :convert}