From 10082bc34600fe95a081fdf818b3f6b11ee301f9 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Tue, 6 Jun 2000 05:54:36 +0000 Subject: [PATCH] Use err2txt for unknown error --- servers/slapd/schemaparse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/schemaparse.c b/servers/slapd/schemaparse.c index 99eaa3a5e1..2205e8741c 100644 --- a/servers/slapd/schemaparse.c +++ b/servers/slapd/schemaparse.c @@ -25,7 +25,7 @@ static void oc_usage(void) LDAP_GCCATTR((noreturn)); static void at_usage(void) LDAP_GCCATTR((noreturn)); static char *const err2text[] = { - "", + "Unknown Error", "Out of memory", "ObjectClass not found", "AttributeType not found", @@ -44,7 +44,7 @@ char * scherr2str(int code) { if ( code < 1 || code >= (sizeof(err2text)/sizeof(char *)) ) { - return "Unknown error"; + return err2text[0]; } else { return err2text[code]; } -- 2.39.5