Log message for revision 39052:
  Show error output when page templates have a syntax error.
  

Changed:
  U   
Zope/branches/Zope-2_8-branch/lib/python/Products/PageTemplates/PageTemplate.py

-=-
Modified: 
Zope/branches/Zope-2_8-branch/lib/python/Products/PageTemplates/PageTemplate.py
===================================================================
--- 
Zope/branches/Zope-2_8-branch/lib/python/Products/PageTemplates/PageTemplate.py 
    2005-10-11 17:05:57 UTC (rev 39051)
+++ 
Zope/branches/Zope-2_8-branch/lib/python/Products/PageTemplates/PageTemplate.py 
    2005-10-11 17:09:02 UTC (rev 39052)
@@ -91,7 +91,9 @@
         __traceback_supplement__ = (PageTemplateTracebackSupplement, self)
 
         if self._v_errors:
-            raise PTRuntimeError, 'Page Template %s has errors.' % self.id
+            e = str(self._v_errors)
+            raise PTRuntimeError, (
+                'Page Template %s has errors: %s' % (self.id, e))
         output = self.StringIO()
         c = self.pt_getContext()
         c.update(extra_context)

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to