merge stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 02 Dec 2009 11:57:38 +0100
branchstable
changeset 3962 15d9d47f5434
parent 3961 d1cbf77db999 (current diff)
parent 3959 e6ecaf93c0ba (diff)
child 3963 0d592677e55f
merge
--- a/entities/wfobjs.py	Wed Dec 02 11:53:25 2009 +0100
+++ b/entities/wfobjs.py	Wed Dec 02 11:57:38 2009 +0100
@@ -101,7 +101,7 @@
         self.req.execute('SET S state_of WF WHERE S eid %(s)s, WF eid %(wf)s',
                          {'s': state.eid, 'wf': self.eid}, ('s', 'wf'))
         if initial:
-            assert not self.initial
+            assert not self.initial, "Initial state already defined as %s" % self.initial
             self.req.execute('SET WF initial_state S '
                              'WHERE S eid %(s)s, WF eid %(wf)s',
                              {'s': state.eid, 'wf': self.eid}, ('s', 'wf'))