diff options
author | dkf <dkf@noemail.net> | 2011-04-04 22:53:26 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2011-04-04 22:53:26 (GMT) |
commit | 3a411df191c09f5ec451fdecaa4b6dce075c48db (patch) | |
tree | b63e806ef1238d4d4a16441419f7a6625fd66c33 /generic/tclOOMethod.c | |
parent | 83e19c30446d2c15a632f16df1a29b59a2b0f110 (diff) | |
download | tcl-3a411df191c09f5ec451fdecaa4b6dce075c48db.zip tcl-3a411df191c09f5ec451fdecaa4b6dce075c48db.tar.gz tcl-3a411df191c09f5ec451fdecaa4b6dce075c48db.tar.bz2 |
More generation of error codes (TclOO miscellany).
FossilOrigin-Name: 08998a4f586f1580b406fb7ede45dccddbeebeb5
Diffstat (limited to 'generic/tclOOMethod.c')
-rw-r--r-- | generic/tclOOMethod.c | 2 |
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; } |