diff options
author | Kevin B Kenny <kennykb@acm.org> | 2009-01-03 04:36:53 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2009-01-03 04:36:53 (GMT) |
commit | eac07cc4d86dd8163567e2d6e2202f9ab525479f (patch) | |
tree | 60ce30ae5abebbdb46ad8dd9194023ac5ad5c6e0 /library/clock.tcl | |
parent | 52f91ca4da8d1e4fc46615a6b63db7e39b265081 (diff) | |
download | tcl-eac07cc4d86dd8163567e2d6e2202f9ab525479f.zip tcl-eac07cc4d86dd8163567e2d6e2202f9ab525479f.tar.gz tcl-eac07cc4d86dd8163567e2d6e2202f9ab525479f.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].
Diffstat (limited to 'library/clock.tcl')
-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 4a34b82..8a78c39 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.47.2.4 2008/12/12 17:46:13 nijtmans Exp $ +# RCS: @(#) $Id: clock.tcl,v 1.47.2.5 2009/01/03 04:36:53 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" } } |