X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=inline;f=index%2Fzebraapi.c;h=7b146618852e3344a3453719636999e9e8d59221;hb=7253cbefce93c35a083505e14d97b3ae24c0a66b;hp=3f80807b1af3f8a3c8ed677127dbdcf048d71f7c;hpb=4c112f15503aebed494fab8aa5296c3661bfb31c;p=idzebra-moved-to-github.git diff --git a/index/zebraapi.c b/index/zebraapi.c index 3f80807..7b14661 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -1,4 +1,4 @@ -/* $Id: zebraapi.c,v 1.236 2006-12-05 09:26:37 adam Exp $ +/* $Id: zebraapi.c,v 1.237 2006-12-05 14:06:29 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -209,7 +209,18 @@ ZebraService zebra_start_res(const char *configName, Res def_res, Res over_res) res_close(res); return 0; } + if (zebra_check_res(res)) + { + yaz_log(YLOG_FATAL, "Configuration error(s) for %s", + configName); + return 0; + } } + else + { + zebra_check_res(res); + } + zh = xmalloc(sizeof(*zh)); zh->global_res = res; zh->sessions = 0;