From 0772eaaf6af9b6644d47b72c0ff78d9b3e09a31f Mon Sep 17 00:00:00 2001 From: James Cherry Date: Wed, 10 Dec 2025 16:29:22 -0700 Subject: [PATCH] swig exception hander use $action resolves #357 Signed-off-by: James Cherry --- tcl/Exception.i | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcl/Exception.i b/tcl/Exception.i index 39d73c46..0c4d788e 100644 --- a/tcl/Exception.i +++ b/tcl/Exception.i @@ -23,7 +23,7 @@ // This notice may not be removed or altered from any source distribution. %exception { - try { $function } + try { $action } catch (std::bad_alloc &) { fprintf(stderr, "Error: out of memory.\n"); exit(1);