From: Kurt Zeilenga Date: Fri, 16 Jul 2004 20:35:49 +0000 (+0000) Subject: Improve error reporting X-Git-Tag: OPENLDAP_REL_ENG_2_2_15~31 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6084373d10e6792f44ffd5f7584f4f376e4aaa4a;p=openldap Improve error reporting --- diff --git a/clients/tools/common.c b/clients/tools/common.c index 3c67c918c5..1acb01d1ca 100644 --- a/clients/tools/common.c +++ b/clients/tools/common.c @@ -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 ); }