From f2e302c6a8c57b6f1902c7bf869b185b0a7f25d5 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Fri, 20 Sep 2024 16:33:20 +0300 Subject: [PATCH] Suppress writing xml parse errors to stderr --- lib/gpx.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gpx.rb b/lib/gpx.rb index 3e1cb9afa..1bf7764ec 100644 --- a/lib/gpx.rb +++ b/lib/gpx.rb @@ -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 -- 2.39.5