From e8b504e6b88e1254fb1c329a74fd1afaf973570b Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 8 Nov 2006 08:55:50 +0000 Subject: [PATCH] Fixed bug #729: Bad error message when starting with an invalid address. --- client/client.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/client/client.c b/client/client.c index 4f8ccae..396be27 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: client.c,v 1.317 2006-10-04 07:26:00 adam Exp $ + * $Id: client.c,v 1.318 2006-11-08 08:55:50 adam Exp $ */ /** \file client.c * \brief yaz-client program @@ -686,7 +686,7 @@ int session_connect(const char *arg) conn = cs_create_host(arg, 1, &add); if (!conn) { - printf ("Couldn't create comstack\n"); + printf ("Could not resolve address %s\n", arg); return 0; } #if YAZ_HAVE_XML2 @@ -711,12 +711,6 @@ int session_connect(const char *arg) if (cs_connect(conn, add) < 0) { printf ("error = %s\n", cs_strerror(conn)); - if (conn->cerrno == CSYSERR) - { - char msg[256]; - yaz_strerror(msg, sizeof(msg)); - printf ("%s\n", msg); - } cs_close(conn); conn = 0; return 0; -- 1.7.10.4