From: Adam Dickmeiss Date: Mon, 24 Jun 2013 09:41:27 +0000 (+0200) Subject: zebra_register_check: warn for unknown options X-Git-Tag: v2.0.55~3 X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=commitdiff_plain;h=1ded5728f3b126d0716a01efe4734407b82af826;ds=sidebyside zebra_register_check: warn for unknown options --- diff --git a/index/zebraapi.c b/index/zebraapi.c index e47132c..afbb1e9 100644 --- a/index/zebraapi.c +++ b/index/zebraapi.c @@ -2422,7 +2422,10 @@ ZEBRA_RES zebra_register_check(ZebraHandle zh, const char *spec) else if (!strcmp(spec, "quick")) flags = 0; else + { + yaz_log(YLOG_WARN, "Unknown check spec: %s", spec); return ZEBRA_FAIL; + } yaz_log(YLOG_LOG, "zebra_register_check begin flags=%u", flags); if (zebra_begin_read(zh) == ZEBRA_OK)