ITS#4453 don't print error message on stdout

This commit is contained in:
Howard Chu 2006-05-12 07:56:20 +00:00
parent ff40a705da
commit 4d85c307c4

View file

@ -261,8 +261,10 @@ static int dodelete(
return rc; return rc;
} }
if( verbose || code != LDAP_SUCCESS || if( code != LDAP_SUCCESS ) {
(matcheddn && *matcheddn) || (text && *text) || (refs && *refs) ) tool_perror( "ldap_delete", code, NULL, matcheddn, text, refs );
} else if ( verbose &&
((matcheddn && *matcheddn) || (text && *text) || (refs && *refs) ))
{ {
printf( _("Delete Result: %s (%d)\n"), printf( _("Delete Result: %s (%d)\n"),
ldap_err2string( code ), code ); ldap_err2string( code ), code );