summaryrefslogtreecommitdiffstats
path: root/generic/tclVar.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2016-06-22 20:57:18 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2016-06-22 20:57:18 (GMT)
commit23df0f8727cefc64cb5b4a6c7a3af518d16fbd7c (patch)
treeabe040e370dd9957ca380b778c3dc23cbf1d6476 /generic/tclVar.c
parenta584299193791f22e2e29fefceec030584feae54 (diff)
downloadtcl-23df0f8727cefc64cb5b4a6c7a3af518d16fbd7c.zip
tcl-23df0f8727cefc64cb5b4a6c7a3af518d16fbd7c.tar.gz
tcl-23df0f8727cefc64cb5b4a6c7a3af518d16fbd7c.tar.bz2
[c95b9fc0e3] Make errorcodes out of level parsing more consistent.
Diffstat (limited to 'generic/tclVar.c')
-rw-r--r--generic/tclVar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c
index 5574f30..51e2482 100644
--- a/generic/tclVar.c
+++ b/generic/tclVar.c
@@ -4938,7 +4938,8 @@ Tcl_UpvarObjCmd(
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"bad level \"%s\"", TclGetString(levelObj)));
- Tcl_SetErrorCode(interp, "TCL", "VALUE", "LEVEL", NULL);
+ Tcl_SetErrorCode(interp, "TCL", "LOOKUP", "LEVEL",
+ TclGetString(levelObj), NULL);
return TCL_ERROR;
}