]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/libxml.rb
Update to iD v1.7.3
[rails.git] / config / initializers / libxml.rb
index 4f71b6d0fd42ef0bad5b294a46d43633db46fb61..e0e659f12bc4e3e326a13a24da67a5aa69da0fa8 100644 (file)
@@ -1,8 +1,5 @@
-#require 'rubygems'
-#gem 'libxml-ruby', '>= 0.8.3'
-#require 'libxml'
-
-# Is this really needed?
-LibXML::XML::Parser.register_error_handler do |message|
-  raise message
+# This is required otherwise libxml writes out memory errors to
+# the standard output and exits uncleanly
+LibXML::XML::Error.set_handler do |message|
+  fail message
 end