summaryrefslogtreecommitdiffstats
path: root/generic/tclOOMethod.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2011-04-04 22:53:26 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2011-04-04 22:53:26 (GMT)
commit4b3579029f185d116b809a5697720ceeb868c022 (patch)
treeb63e806ef1238d4d4a16441419f7a6625fd66c33 /generic/tclOOMethod.c
parent94153a5def93c7aa8fb86247f30c40b138c2e57e (diff)
downloadtcl-4b3579029f185d116b809a5697720ceeb868c022.zip
tcl-4b3579029f185d116b809a5697720ceeb868c022.tar.gz
tcl-4b3579029f185d116b809a5697720ceeb868c022.tar.bz2
More generation of error codes (TclOO miscellany).
Diffstat (limited to 'generic/tclOOMethod.c')
-rw-r--r--generic/tclOOMethod.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/generic/tclOOMethod.c b/generic/tclOOMethod.c
index 112d663..4e7edb8 100644
--- a/generic/tclOOMethod.c
+++ b/generic/tclOOMethod.c
@@ -1340,6 +1340,7 @@ TclOONewForwardInstanceMethod(
if (prefixLen < 1) {
Tcl_AppendResult(interp, "method forward prefix must be non-empty",
NULL);
+ Tcl_SetErrorCode(interp, "TCL", "OO", "BAD_FORWARD", NULL);
return NULL;
}
@@ -1381,6 +1382,7 @@ TclOONewForwardMethod(
if (prefixLen < 1) {
Tcl_AppendResult(interp, "method forward prefix must be non-empty",
NULL);
+ Tcl_SetErrorCode(interp, "TCL", "OO", "BAD_FORWARD", NULL);
return NULL;
}