Print ldap_err2string(error number) instead of just error number

This commit is contained in:
Hallvard Furuseth 1999-08-02 01:13:39 +00:00
parent 67ff28bf52
commit 294d9f99b2

View 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 ) {