lib/carrierwave/processing/rmagick.rb in carrierwave-0.5.7 vs lib/carrierwave/processing/rmagick.rb in carrierwave-0.5.8

- old
+ new

@@ -264,10 +264,10 @@ else frames.write(current_path) end destroy_image(frames) rescue ::Magick::ImageMagickError => e - raise CarrierWave::ProcessingError.new("Failed to manipulate with rmagick, maybe it is not an image? Original Error: #{e}") + raise CarrierWave::ProcessingError, I18n.translate(:"errors.messages.rmagick_processing_error", :e => e) end private def destroy_image(image)