summaryrefslogtreecommitdiffstats
path: root/carbon
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-07-30 09:08:25 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-07-30 09:08:25 (GMT)
commit0bd347649db35a0b43e0a0ba3d443d4f1f9b3d2b (patch)
tree031f1c2df728052af4573ff7ea91cadf69634adf /carbon
parentca5623894dd113cd5642189574cf6c104c64cad8 (diff)
downloadtk-0bd347649db35a0b43e0a0ba3d443d4f1f9b3d2b.zip
tk-0bd347649db35a0b43e0a0ba3d443d4f1f9b3d2b.tar.gz
tk-0bd347649db35a0b43e0a0ba3d443d4f1f9b3d2b.tar.bz2
more auditing of error codes
Diffstat (limited to 'carbon')
-rw-r--r--carbon/tkMacOSXWm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/carbon/tkMacOSXWm.c b/carbon/tkMacOSXWm.c
index 09c796b..508a5f8 100644
--- a/carbon/tkMacOSXWm.c
+++ b/carbon/tkMacOSXWm.c
@@ -614,7 +614,8 @@ Tk_WmObjCmd(
&& (index != WMOPT_MANAGE) && (index != WMOPT_FORGET)) {
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"window \"%s\" isn't a top-level window", winPtr->pathName));
- Tcl_SetErrorCode(interp, "TK", "WM", "TOPLEVEL", NULL);
+ Tcl_SetErrorCode(interp, "TK", "LOOKUP", "TOPLEVEL", winPtr->pathName,
+ NULL);
return TCL_ERROR;
}
@@ -2009,7 +2010,7 @@ WmIconphotoCmd(
Tcl_SetObjResult(interp, Tcl_ObjPrintf(
"can't use \"%s\" as iconphoto: not a photo image",
Tcl_GetString(objv[i])));
- Tcl_SetErrorCode(interp, "TK", "WM", "ICONPHOTO", NULL);
+ Tcl_SetErrorCode(interp, "TK", "WM", "ICONPHOTO", "PHOTO", NULL);
return TCL_ERROR;
}
Tk_PhotoGetSize(photo, &width, &height);