]> git.openstreetmap.org Git - rails.git/commitdiff
Suppress writing xml parse errors to stderr
authorAnton Khorev <tony29@yandex.ru>
Fri, 20 Sep 2024 13:33:20 +0000 (16:33 +0300)
committerAnton Khorev <tony29@yandex.ru>
Fri, 20 Sep 2024 13:36:30 +0000 (16:36 +0300)
lib/gpx.rb

index 3e1cb9afa6d9cf6da4ca51d80255576c3f25f309..1bf7764ec5e3052f878c394f4ae75f9e1c9e879c 100644 (file)
@@ -57,7 +57,7 @@ module GPX
         when "application/x-bzip" then io = Bzip2::FFI::Reader.open(@file)
         end
 
-        parse_file(XML::Reader.io(io), &block)
+        parse_file(XML::Reader.io(io, :options => XML::Parser::Options::NOERROR), &block)
       end
     end