diff options
| author | donal.k.fellows@manchester.ac.uk <dkf> | 2009-01-08 16:41:34 (GMT) |
|---|---|---|
| committer | donal.k.fellows@manchester.ac.uk <dkf> | 2009-01-08 16:41:34 (GMT) |
| commit | 580a34eea1e8aafe75a2561bcd09ce0197e9b1b9 (patch) | |
| tree | 267ec42d4b8749e2fc3f2492f172710bd8a8b5d0 /generic/tclIndexObj.c | |
| parent | e00c7e4bc787cf74f88082f97ddd90eb67782c00 (diff) | |
| download | tcl-580a34eea1e8aafe75a2561bcd09ce0197e9b1b9.zip tcl-580a34eea1e8aafe75a2561bcd09ce0197e9b1b9.tar.gz tcl-580a34eea1e8aafe75a2561bcd09ce0197e9b1b9.tar.bz2 | |
Generate errorcodes for more cases.
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 |
