Commit 39bc32c3 by Barry Hess

Fix bug where PaperclipError is never raised on unsuccessful thumbnail convert command execution.

parent 8b41b3fc
...@@ -55,7 +55,7 @@ module Paperclip ...@@ -55,7 +55,7 @@ module Paperclip
end_command end_command
success = system(command.gsub(/\s+/, " ")) success = system(command.gsub(/\s+/, " "))
if success && $?.exitstatus != 0 && @whiny_thumbnails if !success && $?.exitstatus != 0 && @whiny_thumbnails
raise PaperclipError, "There was an error processing this thumbnail" raise PaperclipError, "There was an error processing this thumbnail"
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment