summaryrefslogtreecommitdiffstats
path: root/generic/tkImgBmap.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/tkImgBmap.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/tkImgBmap.c')
-rw-r--r--generic/tkImgBmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkImgBmap.c b/generic/tkImgBmap.c
index f57db55..cdd57dd 100644
--- a/generic/tkImgBmap.c
+++ b/generic/tkImgBmap.c
@@ -497,7 +497,7 @@ TkGetBitmapData(
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"can't get bitmap data from a file in a safe interpreter",
-1));
- Tcl_SetErrorCode(interp, "TK", "IMAGE", "BITMAP", "SAFE", NULL);
+ Tcl_SetErrorCode(interp, "TK", "SAFE", "BITMAP_FILE", NULL);
return NULL;
}
expandedFileName = Tcl_TranslateFileName(interp, fileName, &buffer);