diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2010-07-15 21:00:25 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2010-07-15 21:00:25 (GMT) |
commit | 83badefdb71b863f0580d1ee3d6270c5102ba3d9 (patch) | |
tree | 6b04ba25316f8d4a973365fa0f061d7d270ff626 /generic/tclExecute.c | |
parent | 7abfdd1acbbaf999810374d70a5b9423b898fb00 (diff) | |
download | tcl-83badefdb71b863f0580d1ee3d6270c5102ba3d9.zip tcl-83badefdb71b863f0580d1ee3d6270c5102ba3d9.tar.gz tcl-83badefdb71b863f0580d1ee3d6270c5102ba3d9.tar.bz2 |
* generic/tclExecute.c (TclExecuteByteCode): Ensure that [dict get]
* generic/tclDictObj.c (DictGetCmd): always generates an errorCode on
a failure to look up an entry.
Diffstat (limited to 'generic/tclExecute.c')
-rw-r--r-- | generic/tclExecute.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/generic/tclExecute.c b/generic/tclExecute.c index 95e036b..73185b8 100644 --- a/generic/tclExecute.c +++ b/generic/tclExecute.c @@ -14,7 +14,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclExecute.c,v 1.487 2010/07/02 20:37:10 dkf Exp $ + * RCS: @(#) $Id: tclExecute.c,v 1.488 2010/07/15 21:00:26 dkf Exp $ */ #include "tclInt.h" @@ -5818,6 +5818,8 @@ TclExecuteByteCode( Tcl_ResetResult(interp); Tcl_AppendResult(interp, "key \"", TclGetString(OBJ_AT_TOS), "\" not known in dictionary", NULL); + Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "DICT", + TclGetString(OBJ_AT_TOS), NULL); TRACE_WITH_OBJ(("%u => ERROR ", opnd), Tcl_GetObjResult(interp)); } else { TRACE_WITH_OBJ(( |