mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-18 21:26:29 -05:00
ITS#9305 clients: print actual error from connect failure
Related to ITS#10371
This commit is contained in:
parent
148e940fda
commit
93a96ed2e7
1 changed files with 2 additions and 2 deletions
|
|
@ -1416,8 +1416,8 @@ dnssrv_free:;
|
|||
rc = ldap_connect( ld );
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
fprintf( stderr,
|
||||
"Could not connect to URI=%s (%d): %s\n",
|
||||
ldapuri, rc, ldap_err2string(rc) );
|
||||
"Could not connect to URI=%s ", ldapuri );
|
||||
tool_perror2( ld, "" );
|
||||
tool_exit( ld, EXIT_FAILURE );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue