Commit 404d00a0 authored by Chris McDonough's avatar Chris McDonough

Make page templates actually *show* the error they're complaining about in the error output.

parent 0d97efeb
......@@ -91,7 +91,9 @@ class PageTemplate(Base):
__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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment