From: Pierangelo Masarati Date: Wed, 12 Jan 2005 14:31:03 +0000 (+0000) Subject: further refinement of ITS#3461 X-Git-Tag: OPENLDAP_REL_ENG_2_3_BP~413 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d5238b91eb2709b205d8a91945918162c712771d;p=openldap further refinement of ITS#3461 --- diff --git a/servers/slapd/slapcommon.c b/servers/slapd/slapcommon.c index b5134599d1..12a48a1584 100644 --- a/servers/slapd/slapcommon.c +++ b/servers/slapd/slapcommon.c @@ -531,7 +531,19 @@ startup:; #endif if ( !dryrun && slap_startup( be ) ) { - fprintf( stderr, "slap_startup failed\n" ); + + switch ( tool ) { + case SLAPTEST: + fprintf( stderr, "slap_startup failed " + "(test would succeed using " + "the -u switch)\n" ); + break; + + default: + fprintf( stderr, "slap_startup failed\n" ); + break; + } + exit( EXIT_FAILURE ); } }