diff options
author | ferrieux <ferrieux@noemail.net> | 2010-03-01 23:19:35 (GMT) |
---|---|---|
committer | ferrieux <ferrieux@noemail.net> | 2010-03-01 23:19:35 (GMT) |
commit | 96563ca68753a2ce678b76b9eed5e6d3bb30321e (patch) | |
tree | 25fe94e8b0c28dd73c2c234a13d840feda4c9780 /generic/tclIndexObj.c | |
parent | 9e572ee3673392fc6d16576d08554bf5173f2151 (diff) | |
download | tcl-96563ca68753a2ce678b76b9eed5e6d3bb30321e.zip tcl-96563ca68753a2ce678b76b9eed5e6d3bb30321e.tar.gz tcl-96563ca68753a2ce678b76b9eed5e6d3bb30321e.tar.bz2 |
Improve error message for corner case in ::prefix
FossilOrigin-Name: 7f54d07f0ac029b0e77b739d665115cc875abe6c
Diffstat (limited to 'generic/tclIndexObj.c')
-rw-r--r-- | generic/tclIndexObj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c index ee1ec43..c732cec 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.56 2010/03/01 22:20:51 ferrieux Exp $ + * RCS: @(#) $Id: tclIndexObj.c,v 1.57 2010/03/01 23:19:36 ferrieux Exp $ */ #include "tclInt.h" @@ -367,7 +367,7 @@ Tcl_GetIndexFromObjStruct( Tcl_AppendStringsToObj(resultPtr, (numAbbrev > 1) && !(flags & TCL_EXACT) ? "ambiguous " : "bad ", msg, " \"", key, NULL); if (STRING_AT(tablePtr, offset, 0) == NULL) { - Tcl_AppendStringsToObj(resultPtr, "\": empty table !", NULL); + Tcl_AppendStringsToObj(resultPtr, "\": no valid options", NULL); } else { Tcl_AppendStringsToObj(resultPtr, "\": must be ", STRING_AT(tablePtr, offset, 0), NULL); for (entryPtr = NEXT_ENTRY(tablePtr, offset), count = 0; |