summaryrefslogtreecommitdiffstats
path: root/generic/tclOOMethod.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-08-06 07:59:01 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-08-06 07:59:01 (GMT)
commit276404432ecf07fa12997ae2aecf6cf8ef0f9714 (patch)
tree9726218d2767be111aba0feda74cd0ac220f4355 /generic/tclOOMethod.c
parent33bcb6e718ec30da522f10e0388743eafab975c7 (diff)
parent22298666ade7c7396ece86e2976309e955e9abd5 (diff)
downloadtcl-276404432ecf07fa12997ae2aecf6cf8ef0f9714.zip
tcl-276404432ecf07fa12997ae2aecf6cf8ef0f9714.tar.gz
tcl-276404432ecf07fa12997ae2aecf6cf8ef0f9714.tar.bz2
merge trunk
Diffstat (limited to 'generic/tclOOMethod.c')
-rw-r--r--generic/tclOOMethod.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclOOMethod.c b/generic/tclOOMethod.c
index 877c3db..60eaa6e 100644
--- a/generic/tclOOMethod.c
+++ b/generic/tclOOMethod.c
@@ -1329,8 +1329,8 @@ TclOONewForwardInstanceMethod(
return NULL;
}
if (prefixLen < 1) {
- Tcl_AppendResult(interp, "method forward prefix must be non-empty",
- NULL);
+ Tcl_SetObjResult(interp, Tcl_NewStringObj(
+ "method forward prefix must be non-empty", -1));
Tcl_SetErrorCode(interp, "TCL", "OO", "BAD_FORWARD", NULL);
return NULL;
}
@@ -1371,8 +1371,8 @@ TclOONewForwardMethod(
return NULL;
}
if (prefixLen < 1) {
- Tcl_AppendResult(interp, "method forward prefix must be non-empty",
- NULL);
+ Tcl_SetObjResult(interp, Tcl_NewStringObj(
+ "method forward prefix must be non-empty", -1));
Tcl_SetErrorCode(interp, "TCL", "OO", "BAD_FORWARD", NULL);
return NULL;
}