From 908723aaa33a64a2cab3e1e4fe2b1270c73f3bfc Mon Sep 17 00:00:00 2001
From: Quanah Gibson-Mount <quanah@openldap.org>
Date: Thu, 13 Aug 2009 02:50:01 +0000
Subject: [PATCH] log in case of failure

---
 servers/slapd/overlays/pcache.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c
index c40825d836..3190e95341 100644
--- a/servers/slapd/overlays/pcache.c
+++ b/servers/slapd/overlays/pcache.c
@@ -3254,6 +3254,10 @@ pc_cf_gen( ConfigArgs *c )
 
 			ct = config_find_keyword( cm->db.bd_info->bi_cf_ocs->co_table, c );
 			if ( ct == NULL ) {
+				snprintf( c->cr_msg, sizeof( c->cr_msg ),
+					"private database does not recognize specific option '%s'",
+					c->argv[ 0 ] );
+				Debug( LDAP_DEBUG_CONFIG, "%s: %s.\n", c->log, c->cr_msg, 0 );
 				rc = 1;
 
 			} else {
-- 
GitLab