File 0428-Make-it-the-same-as-expressions.html-catch-and-throw.patch of Package erlang

From f9020ae7a316696a84d22e960f199dd4c662f5e4 Mon Sep 17 00:00:00 2001
From: "Paulo F. Oliveira" <paulo.ferraz.oliveira@gmail.com>
Date: Thu, 22 May 2025 22:06:35 +0100
Subject: [PATCH] Make it the same as expressions.html#catch-and-throw

---
 erts/preloaded/src/erlang.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/erts/preloaded/src/erlang.erl b/erts/preloaded/src/erlang.erl
index cfb724920a..74428e4109 100644
--- a/erts/preloaded/src/erlang.erl
+++ b/erts/preloaded/src/erlang.erl
@@ -6503,7 +6503,7 @@ catch
 end
 ```
 
-Failure: `nocatch` if not caught by an exception handler.
+If `throw/1` is not evaluated within a catch, a `nocatch` run-time error occurs.
 
 See the guide about [errors and error handling](`e:system:errors.md`) for
 additional information.
-- 
2.43.0

openSUSE Build Service is sponsored by