From 1ded5728f3b126d0716a01efe4734407b82af826 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 24 Jun 2013 11:41:27 +0200 Subject: [PATCH] zebra_register_check: warn for unknown options --- index/zebraapi.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 1.7.10.4