Commit 4d85c307 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#4453 don't print error message on stdout

parent ff40a705
...@@ -261,8 +261,10 @@ static int dodelete( ...@@ -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 );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment