From: Howard Chu Date: Fri, 12 May 2006 07:56:20 +0000 (+0000) Subject: ITS#4453 don't print error message on stdout X-Git-Tag: OPENLDAP_REL_ENG_2_4_1ALPHA~2^2~35 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4d85c307c436fb1d9bbbaf338b36c65a5c98c87c;p=openldap ITS#4453 don't print error message on stdout --- diff --git a/clients/tools/ldapdelete.c b/clients/tools/ldapdelete.c index 8bbc1c4663..2e7d42f82b 100644 --- a/clients/tools/ldapdelete.c +++ b/clients/tools/ldapdelete.c @@ -261,8 +261,10 @@ static int dodelete( return rc; } - if( verbose || code != LDAP_SUCCESS || - (matcheddn && *matcheddn) || (text && *text) || (refs && *refs) ) + if( code != LDAP_SUCCESS ) { + tool_perror( "ldap_delete", code, NULL, matcheddn, text, refs ); + } else if ( verbose && + ((matcheddn && *matcheddn) || (text && *text) || (refs && *refs) )) { printf( _("Delete Result: %s (%d)\n"), ldap_err2string( code ), code );