Add detail about running version on vips error failure (#30858)

main-rebase-security-fix
Matt Jankowski 2024-06-27 12:27:42 -04:00 committed by GitHub
parent 03bbb74b0c
commit bc3737f0c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -5,7 +5,11 @@ if Rails.configuration.x.use_vips
require 'vips' require 'vips'
abort('Incompatible libvips version, please install libvips >= 8.13') unless Vips.at_least_libvips?(8, 13) unless Vips.at_least_libvips?(8, 13)
abort <<~ERROR.squish
Incompatible libvips version (#{Vips.version_string}), please install libvips >= 8.13
ERROR
end
Vips.block('VipsForeign', true) Vips.block('VipsForeign', true)