summaryrefslogtreecommitdiffstats
path: root/generic/tclClock.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2014-06-17 14:30:06 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2014-06-17 14:30:06 (GMT)
commit7bde9467424438f3430f9d2ece72a604f856ff43 (patch)
tree8f39f23145f82d7c131c79685ec6501399225d4d /generic/tclClock.c
parentfce6982a3e3c906ae5b46d0c7b93919aadb4f01c (diff)
downloadtcl-7bde9467424438f3430f9d2ece72a604f856ff43.zip
tcl-7bde9467424438f3430f9d2ece72a604f856ff43.tar.gz
tcl-7bde9467424438f3430f9d2ece72a604f856ff43.tar.bz2
[f0f876c141] Improve consistency in error messages.
Diffstat (limited to 'generic/tclClock.c')
-rw-r--r--generic/tclClock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c
index 15f29e5..7e917f6 100644
--- a/generic/tclClock.c
+++ b/generic/tclClock.c
@@ -1703,7 +1703,7 @@ ClockClicksObjCmd(
case 1:
break;
case 2:
- if (Tcl_GetIndexFromObj(interp, objv[1], clicksSwitches, "switch", 0,
+ if (Tcl_GetIndexFromObj(interp, objv[1], clicksSwitches, "option", 0,
&index) != TCL_OK) {
return TCL_ERROR;
}
@@ -1873,9 +1873,9 @@ ClockParseformatargsObjCmd(
localeObj = litPtr[LIT_C];
timezoneObj = litPtr[LIT__NIL];
for (i = 2; i < objc; i+=2) {
- if (Tcl_GetIndexFromObj(interp, objv[i], options, "switch", 0,
+ if (Tcl_GetIndexFromObj(interp, objv[i], options, "option", 0,
&optionIndex) != TCL_OK) {
- Tcl_SetErrorCode(interp, "CLOCK", "badSwitch",
+ Tcl_SetErrorCode(interp, "CLOCK", "badOption",
Tcl_GetString(objv[i]), NULL);
return TCL_ERROR;
}