From 90bcf39b91e61913623bbe9c425cdd07ed542ce0 Mon Sep 17 00:00:00 2001 From: Darren Ranalli Date: Fri, 20 Oct 2006 02:43:09 +0000 Subject: [PATCH] better error messages --- direct/src/distributed/DoHierarchy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/distributed/DoHierarchy.py b/direct/src/distributed/DoHierarchy.py index d7b271d8cc..e06572ab2e 100755 --- a/direct/src/distributed/DoHierarchy.py +++ b/direct/src/distributed/DoHierarchy.py @@ -62,7 +62,7 @@ class DoHierarchy: doId = do.doId if doId in self._allDoIds: self.notify.error( - 'storeObjectLocation(%s %s) already in _allDoIds; duplicate generate()?' % ( + 'storeObjectLocation(%s %s) already in _allDoIds; duplicate generate()? or didn\'t clean up previous instance of DO?' % ( do.__class__.__name__, do.doId)) parentZoneDict = self._table.setdefault(parentId, {}) zoneDoSet = parentZoneDict.setdefault(zoneId, set()) @@ -75,7 +75,7 @@ class DoHierarchy: doId = do.doId if doId not in self._allDoIds: self.notify.error( - 'deleteObjectLocation(%s %s) not in _allDoIds; duplicate delete()?' % ( + 'deleteObjectLocation(%s %s) not in _allDoIds; duplicate delete()? or invalid previous location on a new object?' % ( do.__class__.__name__, do.doId)) # jbutler: temp hack to get by the assert, this will be fixed soon if (doId not in self._allDoIds):