File 0270-Fix-xmerl_sax_parser-file-2-spec.patch of Package erlang

From ef3d6d7ecdd5fb209c645a99616ac3a77570ccd9 Mon Sep 17 00:00:00 2001
From: Svilen Ivanov <isvilen@applicata.bg>
Date: Sat, 15 Jun 2024 14:03:42 +0300
Subject: [PATCH 1/2] Fix xmerl_sax_parser:file/2 spec

Add missing error return type resulted from file:open.
---
 lib/xmerl/src/xmerl_sax_parser.erl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/xmerl/src/xmerl_sax_parser.erl b/lib/xmerl/src/xmerl_sax_parser.erl
index b72989c310..b65d4e95fd 100644
--- a/lib/xmerl/src/xmerl_sax_parser.erl
+++ b/lib/xmerl/src/xmerl_sax_parser.erl
@@ -119,7 +119,8 @@ This functions uses a default continuation function to read the file in blocks.
       Options :: options(),
       EventState :: event_state(),
       Rest :: unicode_binary() | latin1_binary(),
-      ErrorOrUserReturn :: {Tag, Location, Reason, EndTags, EventState},
+      ErrorOrUserReturn :: {Tag, Location, Reason, EndTags, EventState}
+                         | {error, {Name, Reason}},
       Tag :: fatal_error | atom(),
       Location :: event_location(),
       Reason :: term(),
-- 
2.35.3

openSUSE Build Service is sponsored by