[migration] add schema obj into assertion failure message so we get a chance to understand the pb stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 27 Feb 2012 17:40:56 +0100
branchstable
changeset 8278 3e8b94d921e0
parent 8269 80d37fb56312
child 8279 fa167153d384
[migration] add schema obj into assertion failure message so we get a chance to understand the pb
server/migractions.py
--- a/server/migractions.py	Mon Feb 27 10:12:25 2012 +0100
+++ b/server/migractions.py	Mon Feb 27 17:40:56 2012 +0100
@@ -1112,7 +1112,7 @@
             schemaobj = getattr(rdef, attr)
             if getattr(schemaobj, 'eid', None) is None:
                 schemaobj.eid =  self.repo.schema[schemaobj].eid
-                assert schemaobj.eid is not None
+                assert schemaobj.eid is not None, schemaobj
         return rdef
 
     def cmd_drop_relation_definition(self, subjtype, rtype, objtype, commit=True):