diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2011-04-04 22:53:26 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2011-04-04 22:53:26 (GMT) |
commit | 62f7be93ac66383167d1d861091ee1aed3309559 (patch) | |
tree | b63e806ef1238d4d4a16441419f7a6625fd66c33 /generic/tclOOBasic.c | |
parent | b9577734a90693fc104024f0d014669143ca4aee (diff) | |
download | tcl-62f7be93ac66383167d1d861091ee1aed3309559.zip tcl-62f7be93ac66383167d1d861091ee1aed3309559.tar.gz tcl-62f7be93ac66383167d1d861091ee1aed3309559.tar.bz2 |
More generation of error codes (TclOO miscellany).
Diffstat (limited to 'generic/tclOOBasic.c')
-rw-r--r-- | generic/tclOOBasic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tclOOBasic.c b/generic/tclOOBasic.c index 3fee439..0d38dcd 100644 --- a/generic/tclOOBasic.c +++ b/generic/tclOOBasic.c @@ -100,6 +100,7 @@ TclOO_Class_Create( Tcl_AppendResult(interp, "object \"", TclGetString(cmdnameObj), "\" is not a class", NULL); + Tcl_SetErrorCode(interp, "TCL", "OO", "INSTANTIATE_NONCLASS", NULL); return TCL_ERROR; } @@ -163,6 +164,7 @@ TclOO_Class_CreateNs( Tcl_AppendResult(interp, "object \"", TclGetString(cmdnameObj), "\" is not a class", NULL); + Tcl_SetErrorCode(interp, "TCL", "OO", "INSTANTIATE_NONCLASS", NULL); return TCL_ERROR; } @@ -231,6 +233,7 @@ TclOO_Class_New( Tcl_AppendResult(interp, "object \"", TclGetString(cmdnameObj), "\" is not a class", NULL); + Tcl_SetErrorCode(interp, "TCL", "OO", "INSTANTIATE_NONCLASS", NULL); return TCL_ERROR; } |