[Zope3-checkins] CVS: Zope3/src/transaction - _transaction.py:1.1.2.20

Tim Peters tim.one at comcast.net
Mon Mar 22 16:45:02 EST 2004


Update of /cvs-repository/Zope3/src/transaction
In directory cvs.zope.org:/tmp/cvs-serv12513/src/transaction

Modified Files:
      Tag: jeremy-txn-branch
	_transaction.py 
Log Message:
Transaction.join():  if the txn status isn't ACTIVE, say what it was
in the exception raised.


=== Zope3/src/transaction/_transaction.py 1.1.2.19 => 1.1.2.20 ===
--- Zope3/src/transaction/_transaction.py:1.1.2.19	Mon Mar 22 16:38:20 2004
+++ Zope3/src/transaction/_transaction.py	Mon Mar 22 16:45:01 2004
@@ -136,7 +136,8 @@
 
     def join(self, resource):
         if self.status != Status.ACTIVE:
-            raise ValueError
+            raise ValueError("expected txn status %r, but it's %r" % (
+                             Status.ACTIVE, self.status))
         self._resources.append(resource)
 
     def register(self, obj):




More information about the Zope3-Checkins mailing list