]> git.sur5r.net Git - openldap/commitdiff
Print ldap_err2string(error number) instead of just error number
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 2 Aug 1999 01:13:39 +0000 (01:13 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 2 Aug 1999 01:13:39 +0000 (01:13 +0000)
clients/gopher/go500gw.c

index 46c69cbe1cf2499eb1448f9969f9f26631e2b0c0..4ee45391c706b63a5a989085e31ef3057e82ac58 100644 (file)
@@ -870,8 +870,8 @@ do_read( LDAP *ld, FILE *fp, char *dn )
                ldap_get_option(ld, LDAP_OPT_ERROR_NUMBER, &ld_errno);
 
                fprintf(fp,
-                   "0An error occurred (explanation)\t@%d\t%s\t%d\r\n",
-                   ld_errno, myhost, myport );
+                   "0An error occurred (explanation)\t@%s\t%s\t%d\r\n",
+                   ldap_err2string( ld_errno ), myhost, myport );
        }
 
        if ( tmpllist != NULL ) {