File 1157-Don-t-say-that-we-will-remove-the-old-catch.patch of Package erlang
From f4be0afbae30058b59212d2d4e8dcf8a0a834654 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org>
Date: Thu, 12 Feb 2026 15:59:04 +0100
Subject: [PATCH] Don't say that we will remove the old catch
---
lib/stdlib/src/erl_lint.erl | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/stdlib/src/erl_lint.erl b/lib/stdlib/src/erl_lint.erl
index a56376890e..07738604ab 100644
--- a/lib/stdlib/src/erl_lint.erl
+++ b/lib/stdlib/src/erl_lint.erl
@@ -669,8 +669,7 @@ format_error_1({deprecated_builtin_type, {Name, Arity},
[Name, Arity, Rel, UseS]};
format_error_1(deprecated_catch) ->
~"""
- 'catch ...' is deprecated and will be removed in a
- future version of Erlang/OTP; please use 'try ... catch ... end' instead.
+ 'catch ...' is deprecated; please use 'try ... catch ... end' instead.
Compile directive 'nowarn_deprecated_catch' can be used to suppress
warnings in selected modules.
""";
--
2.51.0