From: Hallvard Furuseth Date: Mon, 2 Aug 1999 01:13:39 +0000 (+0000) Subject: Print ldap_err2string(error number) instead of just error number X-Git-Tag: TWEB_OL_BASE~335 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=294d9f99b25ba0f9cea05ff3723faafa0c668de5;p=openldap Print ldap_err2string(error number) instead of just error number --- diff --git a/clients/gopher/go500gw.c b/clients/gopher/go500gw.c index 46c69cbe1c..4ee45391c7 100644 --- a/clients/gopher/go500gw.c +++ b/clients/gopher/go500gw.c @@ -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 ) {