0
0
Fork 0

Improve handling of libvips failures (#30597)

This commit is contained in:
Claire 2024-06-07 17:39:41 +02:00 committed by GitHub
parent 80cd001e0a
commit 82be5d033f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

View file

@ -12,6 +12,8 @@ module Paperclip
attachment.instance.blurhash = Blurhash.encode(width, height, data, **(options[:blurhash] || {}))
@file
rescue Vips::Error => e
raise Paperclip::Error, "Error while generating blurhash for #{@basename}: #{e}"
end
private