From 6bac94dfad77a06a05a6b329210515ef96f20908 Mon Sep 17 00:00:00 2001 From: Tilman Adler Date: Sat, 29 Feb 2020 13:04:41 +0100 Subject: [PATCH] Improve error message when template is not found The previous error message did not include the path that was searched in. By including the path the debugging of the config becomes way easiert (e.g. in my case I had added the '/templates' folder which was added again by sigal). --- sigal/writer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sigal/writer.py b/sigal/writer.py index 8042fde..35e1021 100644 --- a/sigal/writer.py +++ b/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