projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
068c332
)
GFS: fail if CQL properties can not be opened
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 13 May 2011 10:18:04 +0000
(12:18 +0200)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 13 May 2011 10:18:04 +0000
(12:18 +0200)
src/statserv.c
patch
|
blob
|
history
diff --git
a/src/statserv.c
b/src/statserv.c
index
487153e
..
a039251
100644
(file)
--- a/
src/statserv.c
+++ b/
src/statserv.c
@@
-418,9
+418,14
@@
static void xml_config_read(void)
}
else if (!strcmp((const char *) ptr->name, "cql2rpn"))
{
}
else if (!strcmp((const char *) ptr->name, "cql2rpn"))
{
- gfs->cql_transform = cql_transform_open_fname(
- nmem_dup_xml_content(gfs_nmem, ptr->children)
- );
+ char *name = nmem_dup_xml_content(gfs_nmem, ptr->children);
+ gfs->cql_transform = cql_transform_open_fname(name);
+ if (!gfs->cql_transform)
+ {
+ yaz_log(YLOG_FATAL|YLOG_ERRNO,
+ "open CQL transform file '%s'", name);
+ exit(1);
+ }
}
else if (!strcmp((const char *) ptr->name, "ccl2rpn"))
{
}
else if (!strcmp((const char *) ptr->name, "ccl2rpn"))
{