summaryrefslogtreecommitdiffstats
path: root/generic/tclTimer.c
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2012-08-06 07:59:01 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2012-08-06 07:59:01 (GMT)
commit6aee63effa88b49ebd875a8f1615454f842820f2 (patch)
tree9726218d2767be111aba0feda74cd0ac220f4355 /generic/tclTimer.c
parent68c14126f5f9f31f14ddbcd054764da66e76b7fd (diff)
parent0d3a04a3c2c1394b9cc43b115db2105d11842cd9 (diff)
downloadtcl-6aee63effa88b49ebd875a8f1615454f842820f2.zip
tcl-6aee63effa88b49ebd875a8f1615454f842820f2.tar.gz
tcl-6aee63effa88b49ebd875a8f1615454f842820f2.tar.bz2
merge trunk
FossilOrigin-Name: ff11683baba21e1f4b79305312fa5be47337841a
Diffstat (limited to 'generic/tclTimer.c')
-rw-r--r--generic/tclTimer.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/generic/tclTimer.c b/generic/tclTimer.c
index 36adaad..6b17825 100644
--- a/generic/tclTimer.c
+++ b/generic/tclTimer.c
@@ -829,8 +829,9 @@ Tcl_AfterObjCmd(
if (Tcl_GetWideIntFromObj(NULL, objv[1], &ms) != TCL_OK) {
const char *arg = Tcl_GetString(objv[1]);
- Tcl_AppendResult(interp, "bad argument \"", arg,
- "\": must be cancel, idle, info, or an integer", NULL);
+ Tcl_SetObjResult(interp, Tcl_ObjPrintf(
+ "bad argument \"%s\": must be"
+ " cancel, idle, info, or an integer", arg));
Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "INDEX", "argument",
arg, NULL);
return TCL_ERROR;
@@ -968,8 +969,8 @@ Tcl_AfterObjCmd(
if (afterPtr == NULL) {
const char *eventStr = TclGetString(objv[2]);
- Tcl_AppendResult(interp, "event \"", eventStr, "\" doesn't exist",
- NULL);
+ Tcl_SetObjResult(interp, Tcl_ObjPrintf(
+ "event \"%s\" doesn't exist", eventStr));
Tcl_SetErrorCode(interp, "TCL","LOOKUP","EVENT", eventStr, NULL);
return TCL_ERROR;
} else {