diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-07-30 07:46:19 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-07-30 07:46:19 (GMT) |
commit | ca5623894dd113cd5642189574cf6c104c64cad8 (patch) | |
tree | 7e57204b12abc171ad343d007edecaf1b17cdf09 /generic/tkGrid.c | |
parent | 27b42b57118a651074b7f1fcc859fc4ae00090d0 (diff) | |
download | tk-ca5623894dd113cd5642189574cf6c104c64cad8.zip tk-ca5623894dd113cd5642189574cf6c104c64cad8.tar.gz tk-ca5623894dd113cd5642189574cf6c104c64cad8.tar.bz2 |
Working towards making the error codes more consistent.
Diffstat (limited to 'generic/tkGrid.c')
-rw-r--r-- | generic/tkGrid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkGrid.c b/generic/tkGrid.c index 6c5bbc1..c11d342 100644 --- a/generic/tkGrid.c +++ b/generic/tkGrid.c @@ -403,7 +403,7 @@ Tk_GridObjCmd( /* This should not happen */ Tcl_SetObjResult(interp, Tcl_NewStringObj("internal error in grid", -1)); - Tcl_SetErrorCode(interp, "TK", "UNREACHABLE", NULL); + Tcl_SetErrorCode(interp, "TK", "API_ABUSE", NULL); return TCL_ERROR; } @@ -1004,7 +1004,7 @@ GridRowColumnConfigureCommand( if (lObjc == 0) { Tcl_SetObjResult(interp, Tcl_ObjPrintf("no %s indices specified", (slotType == COLUMN) ? "column" : "row")); - Tcl_SetErrorCode(interp, "TK", "GRID", "NOINDEX", NULL); + Tcl_SetErrorCode(interp, "TK", "GRID", "NO_INDEX", NULL); Tcl_DecrRefCount(listCopy); return TCL_ERROR; } |