From d5238b91eb2709b205d8a91945918162c712771d Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 12 Jan 2005 14:31:03 +0000 Subject: [PATCH] further refinement of ITS#3461 --- servers/slapd/slapcommon.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 ); } } -- 2.39.5