This is an automated email from the ASF dual-hosted git repository.

jiahuili430 pushed a commit to branch switch-to-try-catch
in repository https://gitbox.apache.org/repos/asf/couchdb-jiffy.git

commit cf64da8ef1fddd0707fcbffcb6fe7996dd6efde2
Author: Jiahui Li <[email protected]>
AuthorDate: Tue Nov 17 11:44:25 2026 -0600

    Switch to try catch for OTP 29
---
 test/jiffy_12_error_tests.erl | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/test/jiffy_12_error_tests.erl b/test/jiffy_12_error_tests.erl
index 7c2c2b3..602ce3e 100644
--- a/test/jiffy_12_error_tests.erl
+++ b/test/jiffy_12_error_tests.erl
@@ -98,4 +98,11 @@ encode_bad_option_test_() ->
 
 
 enc_error(Type, Obj, Case) ->
-    ?_assertMatch({'EXIT', {{Type, Obj}, _}}, (catch jiffy:encode(Case))).
+    ?_assertMatch(
+        {'EXIT', {{Type, Obj}, _}},
+        try
+            jiffy:encode(Case)
+        catch
+            _:Reason:_Stk -> {'EXIT', {Reason, _Stk}}
+        end
+    ).

Reply via email to