better error messages
This commit is contained in:
parent
7a2e78cbb3
commit
90bcf39b91
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in New Issue