]> git.sur5r.net Git - openldap/commitdiff
further refinement of ITS#3461
authorPierangelo Masarati <ando@openldap.org>
Wed, 12 Jan 2005 14:31:03 +0000 (14:31 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 12 Jan 2005 14:31:03 +0000 (14:31 +0000)
servers/slapd/slapcommon.c

index b5134599d18219244f9647bc68073f00447c30c6..12a48a158443746c8767e635157aa97c2bfb75b0 100644 (file)
@@ -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 );
        }
 }