From 057481441231748ce8a1c96092c5a6174f7581d8 Mon Sep 17 00:00:00 2001 From: James Cherry Date: Mon, 16 Mar 2020 07:40:15 -0700 Subject: [PATCH] Exception (again) --- tcl/Exception.i | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tcl/Exception.i b/tcl/Exception.i index d7d0b893..6b786981 100644 --- a/tcl/Exception.i +++ b/tcl/Exception.i @@ -25,8 +25,8 @@ exit(0); } catch (std::exception &excp) { - char *msg = stringPrint("Error: %s", excp.what()); - Tcl_SetResult(interp, msg, nullptr); + Tcl_ResetResult(interp); + Tcl_AppendResult(interp, "Error: ", excp.what(), nullptr); return TCL_ERROR; } }