[Zope3-checkins] SVN: Zope3/trunk/src/zope/wfmc/process.py More information on exception message for debug purpose

Julien Anguenot ja at nuxeo.com
Sat Jun 25 05:46:41 EDT 2005


Log message for revision 30916:
  More information on exception message for debug purpose

Changed:
  U   Zope3/trunk/src/zope/wfmc/process.py

-=-
Modified: Zope3/trunk/src/zope/wfmc/process.py
===================================================================
--- Zope3/trunk/src/zope/wfmc/process.py	2005-06-24 22:20:42 UTC (rev 30915)
+++ Zope3/trunk/src/zope/wfmc/process.py	2005-06-25 09:46:40 UTC (rev 30916)
@@ -133,11 +133,13 @@
         self.andJoinSetting = setting
 
     def addApplication(self, application, actual=()):
-        formal = self.process.applications[application].parameters
+        app = self.process.applications[application]
+        formal = app.parameters
         if len(formal) != len(actual):
-            raise TypeError("Wrong number of parameters")
-        
-        self.applications += ((application, formal, tuple(actual)), )
+            raise TypeError("Wrong number of parameters => "
+                            "Actual=%s, Formal=%s for Application %s with id=%s"
+                            %(str(actual), str(formal), str(app), str(app.id)))
+        self.applications += ((application, formal, tuple(actual)), ) 
 
     def definePerformer(self, performer):
         self.performer = performer



More information about the Zope3-Checkins mailing list