Commit 9d32f5e5 authored by Chris McDonough's avatar Chris McDonough

Show error output when page templates have a syntax error.

parent 2207e04d
......@@ -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