tables.py: make height error message more informative
authorrgbecker
Fri, 08 Apr 2011 13:17:57 +0000
changeset 3507 5d4f0215bd8f
parent 3506 192dac8f2cd0
child 3509 a5c544ad316f
tables.py: make height error message more informative
src/reportlab/platypus/tables.py
--- a/src/reportlab/platypus/tables.py	Fri Apr 08 12:23:20 2011 +0000
+++ b/src/reportlab/platypus/tables.py	Fri Apr 08 13:17:57 2011 +0000
@@ -537,7 +537,7 @@
         for h in H[:hmax]:
             height -= h
             self._rowpositions.append(height)
-        assert abs(height)<1e-8, 'Internal height error'
+        assert abs(height)<1e-8, '!!!!!%s\ninternal height error height=%r hmax=%d Sum(H[:%d])=%r\nH=%r\nrowPositions=%r' % (self.identity(),height,hmax,hmax,self._height,H[:hmax],self._rowpositions)
         self._hmax = hmax
 
     def _calc(self, availWidth, availHeight):