From 937c67ab0c3637a909bb05bcb16e70a9934631fa Mon Sep 17 00:00:00 2001 From: teodor Date: Tue, 30 Sep 2008 15:05:26 +0000 Subject: [PATCH] Add log messase --- tmpl_gram.y | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tmpl_gram.y b/tmpl_gram.y index 09353fc..3730660 100644 --- a/tmpl_gram.y +++ b/tmpl_gram.y @@ -1,4 +1,5 @@ %{ +#include #include #include #include @@ -189,8 +190,11 @@ parseTemplateFile(Template tmpl, char* filename ) { FILE *in = fopen(filename, "r"); int err; - if ( in == NULL ) + if ( in == NULL ) { + tlog(TL_CRIT,"Can not open template file '%s': %s", + filename, strerror(errno)); return 3; + } curTmpl = tmpl; curTmpl->tree = NULL; -- 2.46.1