improve error message
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Wed, 16 Dec 2009 14:19:01 +0100
changeset 4141 637170c17643
parent 4140 46ddd27a4ca4
child 4142 ba6c316e3d9c
improve error message
view.py
--- a/view.py	Fri Dec 18 14:28:29 2009 +0100
+++ b/view.py	Wed Dec 16 14:19:01 2009 +0100
@@ -180,7 +180,7 @@
         """
         rset = self.cw_rset
         if rset is None:
-            raise NotImplementedError, self
+            raise NotImplementedError, (self, "an rset is required")
         wrap = self.templatable and len(rset) > 1 and self.add_div_section
         # XXX propagate self.extra_kwars?
         for i in xrange(len(rset)):