From: teodor Date: Tue, 30 Sep 2008 15:05:26 +0000 (+0000) Subject: Add log messase X-Git-Url: http://sigaev.ru/git/gitweb.cgi?a=commitdiff_plain;h=937c67ab0c3637a909bb05bcb16e70a9934631fa;p=tedtools.git Add log messase --- 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;