From 294d9f99b25ba0f9cea05ff3723faafa0c668de5 Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 2 Aug 1999 01:13:39 +0000 Subject: [PATCH] Print ldap_err2string(error number) instead of just error number --- clients/gopher/go500gw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) { -- 2.39.5