projects
/
tedtools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f1dc38
)
Add log messase
author
teodor
<teodor>
Tue, 30 Sep 2008 15:05:26 +0000
(15:05 +0000)
committer
teodor
<teodor>
Tue, 30 Sep 2008 15:05:26 +0000
(15:05 +0000)
tmpl_gram.y
patch
|
blob
|
history
diff --git
a/tmpl_gram.y
b/tmpl_gram.y
index
09353fc
..
3730660
100644
(file)
--- a/
tmpl_gram.y
+++ b/
tmpl_gram.y
@@
-1,4
+1,5
@@
%{
+#include <errno.h>
#include <string.h>
#include <tlog.h>
#include <tmalloc.h>
@@
-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;