]> git.pond.sub.org Git - empserver/commitdiff
ef_verify: Polish product error message
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 21 Feb 2015 18:07:44 +0000 (19:07 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Mon, 2 Mar 2015 07:20:52 +0000 (08:20 +0100)
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/common/ef_verify.c

index dfcacd4a88a4b55518eb79ab45def0c13e1d039c..ae64aa5f3fea3f2d65a589e0283bfebe3d0d213b 100644 (file)
@@ -371,9 +371,8 @@ verify_products(void)
        if (!pchr[i].p_sname[0])
            continue;
        if ((pchr[i].p_type >= 0) == (pchr[i].p_level >= 0)) {
-           fprintf(stderr,
-               "Config %s uid %d field level doesn't match field type\n",
-               ef_nameof(EF_PRODUCT), i);
+           verify_fail(EF_PRODUCT, i, NULL, 0,
+                       "level must be none or type -1");
            retval = -1;
        }
     }