diff options
author | dkf <dkf@noemail.net> | 2009-01-08 16:41:34 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2009-01-08 16:41:34 (GMT) |
commit | bb2e95f0aafc8ebb940170baaf51bc6cd82b0a61 (patch) | |
tree | 267ec42d4b8749e2fc3f2492f172710bd8a8b5d0 /generic/tclIndexObj.c | |
parent | 0fa3f0a1d28cc276043d8841fb5668c135fd9965 (diff) | |
download | tcl-bb2e95f0aafc8ebb940170baaf51bc6cd82b0a61.zip tcl-bb2e95f0aafc8ebb940170baaf51bc6cd82b0a61.tar.gz tcl-bb2e95f0aafc8ebb940170baaf51bc6cd82b0a61.tar.bz2 |
Generate errorcodes for more cases.
FossilOrigin-Name: a12728cbb91807a88ca7e1a6e8d4678ca5eee07b
Diffstat (limited to 'generic/tclIndexObj.c')
-rw-r--r-- | generic/tclIndexObj.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c index 0915092..db2c0d1 100644 --- a/generic/tclIndexObj.c +++ b/generic/tclIndexObj.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclIndexObj.c,v 1.48 2008/12/15 17:28:54 das Exp $ + * RCS: @(#) $Id: tclIndexObj.c,v 1.49 2009/01/08 16:41:34 dkf Exp $ */ #include "tclInt.h" @@ -1034,6 +1034,7 @@ Tcl_WrongNumArgs( Tcl_AppendStringsToObj(objPtr, message, NULL); } Tcl_AppendStringsToObj(objPtr, "\"", NULL); + Tcl_SetErrorCode(interp, "TCL", "WRONGARGS", NULL); Tcl_SetObjResult(interp, objPtr); #undef MAY_QUOTE_WORD #undef AFTER_FIRST_WORD |