From: Kurt Zeilenga Date: Tue, 10 Oct 2000 01:37:07 +0000 (+0000) Subject: Add more detail to "configured to hold" message X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1787 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a67546e640b7fc996636fd3ff10b3492fa3d5e2e;p=openldap Add more detail to "configured to hold" message --- diff --git a/servers/slapd/tools/slapadd.c b/servers/slapd/tools/slapadd.c index 5762364904..8ce9f1a534 100644 --- a/servers/slapd/tools/slapadd.c +++ b/servers/slapd/tools/slapadd.c @@ -79,9 +79,11 @@ main( int argc, char **argv ) /* check backend */ if( select_backend( e->e_ndn ) != be ) { - fprintf( stderr, "%s: database not configured to " + fprintf( stderr, "%s: database (%s) not configured to " "hold dn=\"%s\" (line=%d)\n", - progname, e->e_dn, lineno ); + progname, + be ? be->be_suffix[0] : "", + e->e_dn, lineno ); rc = EXIT_FAILURE; entry_free( e ); if( continuemode ) continue;