summaryrefslogtreecommitdiffstats
path: root/generic/tkCmds.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/tkCmds.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/tkCmds.c')
-rw-r--r--generic/tkCmds.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tkCmds.c b/generic/tkCmds.c
index 2955105..4e9494b 100644
--- a/generic/tkCmds.c
+++ b/generic/tkCmds.c
@@ -687,7 +687,7 @@ AppnameCmd(
if (Tcl_IsSafe(interp)) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"appname not accessible in a safe interpreter", -1));
- Tcl_SetErrorCode(interp, "TK", "SAFE", NULL);
+ Tcl_SetErrorCode(interp, "TK", "SAFE", "APPLICATION", NULL);
return TCL_ERROR;
}
@@ -812,7 +812,7 @@ ScalingCmd(
if (Tcl_IsSafe(interp)) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"scaling not accessible in a safe interpreter", -1));
- Tcl_SetErrorCode(interp, "TK", "SAFE", NULL);
+ Tcl_SetErrorCode(interp, "TK", "SAFE", "SCALING", NULL);
return TCL_ERROR;
}
@@ -862,7 +862,7 @@ UseinputmethodsCmd(
if (Tcl_IsSafe(interp)) {
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"useinputmethods not accessible in a safe interpreter", -1));
- Tcl_SetErrorCode(interp, "TK", "SAFE", NULL);
+ Tcl_SetErrorCode(interp, "TK", "SAFE", "INPUT_METHODS", NULL);
return TCL_ERROR;
}
@@ -959,7 +959,7 @@ InactiveCmd(
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"resetting the user inactivity timer "
"is not allowed in a safe interpreter", -1));
- Tcl_SetErrorCode(interp, "TK", "SAFE", NULL);
+ Tcl_SetErrorCode(interp, "TK", "SAFE", "INACTIVITY_TIMER", NULL);
return TCL_ERROR;
}
Tk_ResetUserInactiveTime(Tk_Display(tkwin));