Browse Source

Merge pull request #384 from t-animal/master

Improve error message when template is not found
pull/360/head
Simon Conseil 6 years ago committed by GitHub
parent
commit
55bb5b13e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      sigal/writer.py

4
sigal/writer.py

@ -87,8 +87,8 @@ class AbstractWriter(object):
try:
self.template = env.get_template(self.template_file)
except TemplateNotFound:
self.logger.error('The template %s was not found.',
self.template_file)
self.logger.error('The template %s was not found in template folder %s.',
self.template_file, theme_relpath)
sys.exit(1)
# Copy the theme files in the output dir

Loading…
Cancel
Save