lib/paperclip/thumbnail.rb in paperclip-6.0.0 vs lib/paperclip/thumbnail.rb in paperclip-6.1.0

- old
+ new

@@ -83,10 +83,13 @@ parameters, source: "#{File.expand_path(src.path)}#{frame}", dest: File.expand_path(dst.path), ) rescue Terrapin::ExitStatusError => e - raise Paperclip::Error, "There was an error processing the thumbnail for #{@basename}" if @whiny + if @whiny + message = "There was an error processing the thumbnail for #{@basename}:\n" + e.message + raise Paperclip::Error, message + end rescue Terrapin::CommandNotFoundError => e raise Paperclip::Errors::CommandNotFoundError.new("Could not run the `convert` command. Please install ImageMagick.") end dst