[CalendarServer-changes] [2050]
CalendarServer/trunk/twistedcaldav/static.py
source_changes at macosforge.org
source_changes at macosforge.org
Thu Dec 6 17:12:15 PST 2007
Revision: 2050
http://trac.macosforge.org/projects/calendarserver/changeset/2050
Author: wsanchez at apple.com
Date: 2007-12-06 17:12:14 -0800 (Thu, 06 Dec 2007)
Log Message:
-----------
Add info to asserts
Modified Paths:
--------------
CalendarServer/trunk/twistedcaldav/static.py
Modified: CalendarServer/trunk/twistedcaldav/static.py
===================================================================
--- CalendarServer/trunk/twistedcaldav/static.py 2007-12-07 01:11:31 UTC (rev 2049)
+++ CalendarServer/trunk/twistedcaldav/static.py 2007-12-07 01:12:14 UTC (rev 2050)
@@ -409,8 +409,8 @@
if hasattr(self, "parent"):
parent = self.parent
- assert parent.exists()
- assert parent.isCollection()
+ assert parent.exists(), "Parent %s of %s does not exist" % (parent, self)
+ assert parent.isCollection(), "Parent %s of %s is not a collection" % (parent, self)
if self.isCollection():
try:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20071206/9dcd8ffa/attachment.html
More information about the calendarserver-changes
mailing list