Corrected the message used when skipping a template due to failure to load the template module.

This commit is contained in:
DeWitt Clinton 2006-08-29 10:40:36 -07:00
parent 2278a73752
commit a31555899e

View File

@ -16,9 +16,9 @@ def run(template_file, doc):
module_path = os.path.join('planet', 'shell', ext[1:])
module = __import__(module_path)
except:
return log.error("Skipping template %s", module_path)
return log.error("Skipping template '%s' after failing to load '%s'", template_resolved, module_path)
log.info("Processing template %s", template_resolved)
output_dir = planet.config.output_dir()
output_file = os.path.join(output_dir, base)
module.run(template_resolved, doc, output_file)
template.run(template_resolved, doc, output_file)