summaryrefslogtreecommitdiffstats
path: root/generic/tkTextIndex.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkTextIndex.c')
-rw-r--r--generic/tkTextIndex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tkTextIndex.c b/generic/tkTextIndex.c
index 4fe97eb..b04eef2 100644
--- a/generic/tkTextIndex.c
+++ b/generic/tkTextIndex.c
@@ -151,7 +151,7 @@ SetTextIndexFromAny(
Tcl_SetObjResult(interp, Tcl_NewStringObj(
"can't convert value to textindex except via"
" TkTextGetIndexFromObj API", -1));
- Tcl_SetErrorCode(interp, "TK", "ILLEGAL_API_USAGE", NULL);
+ Tcl_SetErrorCode(interp, "TK", "API_ABUSE", NULL);
return TCL_ERROR;
}