Improve error reporting

This commit is contained in:
Kurt Zeilenga 2004-07-16 20:35:49 +00:00
parent 6b285d12c9
commit 6084373d10

View file

@ -687,8 +687,8 @@ tool_conn_setup( int not, void (*private_setup)( LDAP * ) )
rc = ldap_initialize( &ld, ldapuri );
if( rc != LDAP_SUCCESS ) {
fprintf( stderr,
"Could not create LDAP session handle (%d): %s\n",
rc, ldap_err2string(rc) );
"Could not create LDAP session handle for URI=%s %d): %s\n",
ldapuri, rc, ldap_err2string(rc) );
exit( EXIT_FAILURE );
}