summaryrefslogtreecommitdiffstats
path: root/generic/tkOption.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-07-30 09:16:18 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-07-30 09:16:18 (GMT)
commitd4a4017589dd52fa8e9667df9d754fd62abd6bed (patch)
treecd1c34c3bde890cd37b2dbe74d9234dd11ce7afb /generic/tkOption.c
parent0bd347649db35a0b43e0a0ba3d443d4f1f9b3d2b (diff)
downloadtk-d4a4017589dd52fa8e9667df9d754fd62abd6bed.zip
tk-d4a4017589dd52fa8e9667df9d754fd62abd6bed.tar.gz
tk-d4a4017589dd52fa8e9667df9d754fd62abd6bed.tar.bz2
more reorganization of error codes: safety is common failure mode
Diffstat (limited to 'generic/tkOption.c')
-rw-r--r--generic/tkOption.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkOption.c b/generic/tkOption.c
index 24f7e39..ec9e465 100644
--- a/generic/tkOption.c
+++ b/generic/tkOption.c
@@ -1081,7 +1081,7 @@ ReadOptionFile(
if (Tcl_IsSafe(interp)) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"can't read options from a file in a safe interpreter", -1));
- Tcl_SetErrorCode(interp, "TK", "OPTIONDB", "SAFE", NULL);
+ Tcl_SetErrorCode(interp, "TK", "SAFE", "OPTION_FILE", NULL);
return TCL_ERROR;
}