Skip to content

Commit

Permalink
Merge pull request #2772 from futurelearn/dw-am-explicit-errors-for-m…
Browse files Browse the repository at this point in the history
…issing-jpg-svg-delegates-on-alpine

Raise MiniMagick::Error if ImageMagick is missing delegates needed for image formats
  • Loading branch information
mshibuya authored Jan 11, 2025
2 parents 97bd98b + 01ebc84 commit b4d43c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/carrierwave/processing/mini_magick.rb
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def manipulate!

::MiniMagick::Image.new(current_path).identify
rescue ::MiniMagick::Error, ::MiniMagick::Invalid => e
raise e if e.message =~ /(You must have .+ installed|is not installed|executable not found)/
raise e if e.message =~ /(You must have .+ installed|is not installed|executable not found|delegate failed)/
message = I18n.translate(:"errors.messages.processing_error")
raise CarrierWave::ProcessingError, message
ensure
Expand Down

0 comments on commit b4d43c3

Please sign in to comment.