lib/mini_magick.rb in mini_magick-1.3.0 vs lib/mini_magick.rb in mini_magick-1.3.1
- old
+ new
@@ -167,9 +167,11 @@
# Raise the appropriate error
if sub.output =~ /no decode delegate/i || sub.output =~ /did not return an image/i
raise Invalid, sub.output
else
+ # TODO: should we do something different if the command times out ...?
+ # its definitely better for logging.. otherwise we dont really know
raise Error, "Command (#{command.inspect}) failed: #{{:status_code => sub.exitstatus, :output => sub.output}.inspect}"
end
else
sub.output
end