Add some more details about template rendering errors
This commit is contained in:
parent
9b384e084f
commit
80ed5006d4
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user