You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be a good idea to output (in every case of rescuing the LoadError) the original exceptions message...
Something as simple as the following perhaps? (per file)
begin
require "sanitize"
rescue LoadError => e
raise HTML::Pipeline::MissingDependencyError, "Missing dependency (or other LoadError) 'sanitize' for SanitizationFilter. See README.md for details.\n----\n#{e}"
end
The text was updated successfully, but these errors were encountered:
I had an incompatible version of nokogiri for sanitize installed in my local Gemfile.lock (for gem development, so not committed to repo).
The sanitization_filter.rb then rescued this LoadError and output the (incorrect) message that there was sanitize was missing dependency.
see: https://github.com/jch/html-pipeline/blob/master/lib/html/pipeline/sanitization_filter.rb#L4
Took me some headscratching to work out what was going wrong.
This has been discussed before:
#160 (comment)
I think it would be a good idea to output (in every case of rescuing the
LoadError
) the original exceptions message...Something as simple as the following perhaps? (per file)
The text was updated successfully, but these errors were encountered: