zebra_register_check: warn for unknown options
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 24 Jun 2013 09:41:27 +0000 (11:41 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 24 Jun 2013 09:41:27 +0000 (11:41 +0200)
index/zebraapi.c

index e47132c..afbb1e9 100644 (file)
@@ -2422,7 +2422,10 @@ ZEBRA_RES zebra_register_check(ZebraHandle zh, const char *spec)
     else if (!strcmp(spec, "quick"))
         flags = 0;
     else
     else if (!strcmp(spec, "quick"))
         flags = 0;
     else
+    {
+        yaz_log(YLOG_WARN, "Unknown check spec: %s", spec);
         return ZEBRA_FAIL;
         return ZEBRA_FAIL;
+    }
 
     yaz_log(YLOG_LOG, "zebra_register_check begin flags=%u", flags);
     if (zebra_begin_read(zh) == ZEBRA_OK)
 
     yaz_log(YLOG_LOG, "zebra_register_check begin flags=%u", flags);
     if (zebra_begin_read(zh) == ZEBRA_OK)