diff options
author | kennykb <kennykb@noemail.net> | 2009-01-03 04:26:48 (GMT) |
---|---|---|
committer | kennykb <kennykb@noemail.net> | 2009-01-03 04:26:48 (GMT) |
commit | 6bf0b1556cb24271a0c4e4f52476c70660f69638 (patch) | |
tree | 0d0ff7202d691330cc3e5b269ab3edd73b5b5566 /library | |
parent | c05f06e6e27179004dbeaaec2ed9cd95e23fd1de (diff) | |
download | tcl-6bf0b1556cb24271a0c4e4f52476c70660f69638.zip tcl-6bf0b1556cb24271a0c4e4f52476c70660f69638.tar.gz tcl-6bf0b1556cb24271a0c4e4f52476c70660f69638.tar.bz2 |
* library/clock.tcl (tcl::clock::add): Fixed error message formatting
in the case where [clock add] is presented with a bad switch.
* tests/clock.test (clock-65.1) Added a test case for the above
problem [Bug 2481670].
FossilOrigin-Name: 338849bf171f70ac6bb695ef17ebc0c5a8c3cbf0
Diffstat (limited to 'library')
-rw-r--r-- | library/clock.tcl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/clock.tcl b/library/clock.tcl index d972955..22b7f67 100644 --- a/library/clock.tcl +++ b/library/clock.tcl @@ -13,7 +13,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: clock.tcl,v 1.51 2008/12/12 17:42:52 nijtmans Exp $ +# RCS: @(#) $Id: clock.tcl,v 1.52 2009/01/03 04:26:49 kennykb Exp $ # #---------------------------------------------------------------------- @@ -4378,8 +4378,8 @@ proc ::tcl::clock::add { clockval args } { } default { return -code error \ - -errorcode [list CLOCK badSwitch $flag] \ - "bad switch \"$flag\",\ + -errorcode [list CLOCK badSwitch $a] \ + "bad switch \"$a\",\ must be -gmt, -locale or -timezone" } } |