lib/paperclip-compression/jpeg.rb in paperclip-compression-1.0.1 vs lib/paperclip-compression/jpeg.rb in paperclip-compression-1.0.2

- old
+ new

@@ -10,12 +10,12 @@ end def make begin @config.process_file? ? process_file : unprocessed_tempfile - rescue Cocaine::ExitStatusError => e + rescue ExitStatusError raise Paperclip::Error, "JPEGTRAN : There was an error processing #{@basename}" if @config.whiny - rescue Cocaine::CommandNotFoundError => e + rescue CommandNotFoundError raise Paperclip::Errors::CommandNotFoundError.new("Could not run 'jpegtran'. Please install jpegtran.") end end private