File 0825-ets-fun2ms-1-should-not-print-error-messages-to-stdo.patch of Package erlang

From 52c2733df13f36beba650419d916a097ac0f8bdf Mon Sep 17 00:00:00 2001
From: Richard Carlsson <carlsson.richard@gmail.com>
Date: Sat, 21 Dec 2024 19:18:02 +0100
Subject: [PATCH 1/2] ets:fun2ms/1 should not print error messages to stdout

---
 lib/stdlib/src/ets.erl | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/stdlib/src/ets.erl b/lib/stdlib/src/ets.erl
index 4f92e3cf05..235898a7bb 100644
--- a/lib/stdlib/src/ets.erl
+++ b/lib/stdlib/src/ets.erl
@@ -2025,9 +2025,7 @@ fun2ms(ShellFun) when is_function(ShellFun) ->
         {fun_data,ImportList,Clauses} ->
             case ms_transform:transform_from_shell(
                    ?MODULE,Clauses,ImportList) of
-                {error,[{_,[{_,_,Code}|_]}|_],_} ->
-                    io:format("Error: ~ts~n",
-                              [ms_transform:format_error(Code)]),
+                {error,[_|_],_} ->
                     {error,transform_error};
                 Else ->
                     Else
-- 
2.43.0

openSUSE Build Service is sponsored by