]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/libxml.rb
add a comment about why the error handler is required, as per mail from TomH. Also...
[rails.git] / config / initializers / libxml.rb
index 4f71b6d0fd42ef0bad5b294a46d43633db46fb61..3b5919f0fca8c0a65c7a0f48f75d099f275bc4fa 100644 (file)
@@ -1,8 +1,5 @@
-#require 'rubygems'
-#gem 'libxml-ruby', '>= 0.8.3'
-#require 'libxml'
-
-# Is this really needed?
+# This is required otherwise libxml writes out memory errors to
+# the standard output and exits uncleanly 
 LibXML::XML::Parser.register_error_handler do |message|
   raise message
 end