mixins.py
branchstable
changeset 6011 b5f15098f282
parent 5895 6a3f776292a5
child 6515 6e998b1be7fd
--- a/mixins.py	Mon Jul 26 12:06:58 2010 +0200
+++ b/mixins.py	Mon Jul 26 12:07:00 2010 +0200
@@ -71,7 +71,7 @@
             _done = set()
         for child in self.children():
             if child.eid in _done:
-                self.error('loop in %s tree', self.__regid__.lower())
+                self.error('loop in %s tree: %s', self.__regid__.lower(), child)
                 continue
             yield child
             _done.add(child.eid)
@@ -94,7 +94,7 @@
         parent = self
         while parent:
             if parent.eid in path:
-                self.error('loop in %s tree', self.__regid__.lower())
+                self.error('loop in %s tree: %s', self.__regid__.lower(), parent)
                 break
             path.append(parent.eid)
             try: