swig exception hander use $action resolves #357

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2025-12-10 16:29:22 -07:00
parent bd3efdc322
commit 0772eaaf6a
1 changed files with 1 additions and 1 deletions

View File

@ -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);