Exception (again)

This commit is contained in:
James Cherry 2020-03-16 07:40:15 -07:00
parent fb21d706a9
commit 0574814412
1 changed files with 2 additions and 2 deletions

View File

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