tclArgError

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2025-11-21 07:56:39 -07:00
parent 5a26929be5
commit cabc1424e0
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ tclArgError(Tcl_Interp *interp,
try {
Sta::sta()->report()->error(id, msg, arg);
} catch (const std::exception &e) {
Tcl_SetResult(interp, const_cast<char*>(e.what()), TCL_STATIC);
Tcl_SetResult(interp, const_cast<char*>(e.what()), TCL_VOLATILE);
}
}