diff options
author | jan.nijtmans <jan.nijtmans@noemail.net> | 2011-04-04 13:40:01 (GMT) |
---|---|---|
committer | jan.nijtmans <jan.nijtmans@noemail.net> | 2011-04-04 13:40:01 (GMT) |
commit | d57b105d70bd7825ca19a8cafff3bc80da498820 (patch) | |
tree | eebeebaa58948935075500c432b9c53885fe1d6b /generic/tclTest.c | |
parent | db0dc9c87d402903e79d5bc5fdb790127623a87c (diff) | |
download | tcl-d57b105d70bd7825ca19a8cafff3bc80da498820.zip tcl-d57b105d70bd7825ca19a8cafff3bc80da498820.tar.gz tcl-d57b105d70bd7825ca19a8cafff3bc80da498820.tar.bz2 |
Better error-message in case of errors related to setting a variable
FossilOrigin-Name: 0b4ce29050f3a92481c073d03bae5e44ec4bf790
Diffstat (limited to 'generic/tclTest.c')
-rw-r--r-- | generic/tclTest.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/generic/tclTest.c b/generic/tclTest.c index b757185..bac0c7f 100644 --- a/generic/tclTest.c +++ b/generic/tclTest.c @@ -3939,10 +3939,8 @@ TestregexpObjCmd( info.matches[ii].end - 1); } } - valuePtr = Tcl_ObjSetVar2(interp, varPtr, NULL, newPtr, 0); + valuePtr = Tcl_ObjSetVar2(interp, varPtr, NULL, newPtr, TCL_LEAVE_ERR_MSG); if (valuePtr == NULL) { - Tcl_AppendResult(interp, "couldn't set variable \"", - Tcl_GetString(varPtr), "\"", NULL); return TCL_ERROR; } } |