]> git.sur5r.net Git - openldap/commitdiff
Add more detail to "configured to hold" message
authorKurt Zeilenga <kurt@openldap.org>
Tue, 10 Oct 2000 01:37:07 +0000 (01:37 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 10 Oct 2000 01:37:07 +0000 (01:37 +0000)
servers/slapd/tools/slapadd.c

index 57623649042ae41dc9dac117d7d3c780af13b678..8ce9f1a5345235062d87f9afd651c663661c1f22 100644 (file)
@@ -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] : "<none>",
+                               e->e_dn, lineno );
                        rc = EXIT_FAILURE;
                        entry_free( e );
                        if( continuemode ) continue;