Add some more details about template rendering errors

This commit is contained in:
Brian C. Lane 2015-04-10 11:01:59 -07:00
parent 9b384e084f
commit 80ed5006d4
1 changed files with 1 additions and 0 deletions

View File

@ -56,6 +56,7 @@ class LoraxTemplate(object):
try:
textbuf = template.render(**variables)
except:
logger.error("Problem rendering %s (%s):", template_file, variables)
logger.error(text_error_template().render())
raise