[Tkabber-dev] [tclgpg] r68 committed - Correct one of error messages [set] can generate...

codesite-noreply at google.com codesite-noreply at google.com
Thu Aug 20 18:56:48 MSD 2009


Revision: 68
Author: khomoutov
Date: Thu Aug 20 07:56:18 2009
Log: Correct one of error messages [set] can generate

"isn't" changed to "is not" in the error message
  [set] returns when the option being queried is not set.

http://code.google.com/p/tclgpg/source/detail?r=68

Modified:
  /trunk/ChangeLog
  /trunk/tclgpg.tcl
  /trunk/tclgpg.test

=======================================
--- /trunk/ChangeLog	Thu Aug 20 07:48:34 2009
+++ /trunk/ChangeLog	Thu Aug 20 07:56:18 2009
@@ -10,9 +10,12 @@

  	* doc/gpg.man: Enclosed section heading in quotes.

-	* tclgpg.tcl: Make [set] and [unset] commands
-	  check the number of arguments they are passed
-	  and return an error message if this number is wrong.
+	* tclgpg.tcl, tclgpg.test:
+	  - Made [set] and [unset] commands check the number
+	    of arguments they are passed and return an error
+		message if this number is wrong.
+	  - Corrected error message [set] returns when
+	    the option being queried is not set.

  2009-08-16  Sergei Golovan  <sgolovan at nes.ru>

=======================================
--- /trunk/tclgpg.tcl	Thu Aug 20 07:48:34 2009
+++ /trunk/tclgpg.tcl	Thu Aug 20 07:56:18 2009
@@ -236,7 +236,7 @@
              if {[info exists state($prop)]} {
                  return $state($prop)
              } else {
-                return -code error [format "property \"%s\" isn't set"  
$prop]
+                return -code error [format "property \"%s\" is not set"  
$prop]
              }
          } else {
              switch -- $prop {
=======================================
--- /trunk/tclgpg.test	Thu Aug 20 07:48:34 2009
+++ /trunk/tclgpg.test	Thu Aug 20 07:56:18 2009
@@ -147,7 +147,7 @@
      $c unset -property passphrase-callback
      $c set -property passphrase-callback
  } -returnCodes error \
-    -result {property "passphrase-callback" isn't set} \
+    -result {property "passphrase-callback" is not set} \
      -cleanup {$c free}

  test unset-1.6 {Unset unknown property} -body {


More information about the Tkabber-dev mailing list