Try and improve libxml error handling.
This commit is contained in:
parent
d69e9533d1
commit
2ac6340a7b
1 changed files with 7 additions and 0 deletions
7
config/initializers/libxml.rb
Normal file
7
config/initializers/libxml.rb
Normal file
|
@ -0,0 +1,7 @@
|
|||
require 'rubygems'
|
||||
gem 'libxml-ruby', '>= 0.8.1'
|
||||
require 'libxml'
|
||||
|
||||
LibXML::XML::Parser.register_error_handler do |message|
|
||||
raise message
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue