From d18906e011e93c8365d2857f39d2f275b8a2f43a Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sat, 21 Nov 2020 08:11:34 +0100 Subject: [PATCH] better debug --- src/rougail/template.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rougail/template.py b/src/rougail/template.py index a9fce3a0..a8484cf1 100644 --- a/src/rougail/template.py +++ b/src/rougail/template.py @@ -357,9 +357,9 @@ class CreoleTemplateEngine: data = str(cheetah_template) except CheetahNotFound as err: varname = err.args[0][13:-1] - raise TemplateError(_(f"Error: unknown variable used in template {destfilename} : {varname}")) + raise TemplateError(_(f"Error: unknown variable used in template {source} to {destfilename} : {varname}")) except Exception as err: - raise TemplateError(_(f"Error while instantiating template {destfilename}: {err}")) + raise TemplateError(_(f"Error while instantiating template {source} to {destfilename}: {err}")) with open(destfilename, 'w') as file_h: file_h.write(data)