]> git.sur5r.net Git - openldap/commitdiff
Improve error reporting
authorKurt Zeilenga <kurt@openldap.org>
Fri, 16 Jul 2004 20:35:49 +0000 (20:35 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 16 Jul 2004 20:35:49 +0000 (20:35 +0000)
clients/tools/common.c

index 3c67c918c5dd60d9dd0d19b6cbab13258f2f654a..1acb01d1ca966ec523d54aba311eddb97198e4b8 100644 (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 );
                }