# HG changeset patch # User Matti Hamalainen # Date 1337998837 -10800 # Node ID bb65460c7aa28a693b664564cd93a0bc152ce339 # Parent f3362ed90676ebbdf32e49c67f7ba4433158ed52 Clean up some initialization messages. diff -r f3362ed90676 -r bb65460c7aa2 main.c --- a/main.c Sat May 26 05:16:27 2012 +0300 +++ b/main.c Sat May 26 05:20:37 2012 +0300 @@ -1868,15 +1868,11 @@ } } - // Okay ... - printMsg(currWin, "Trying to resolve host '%s' ...\n", optServer); + // Okay, try to resolve the hostname conn->host = th_strdup(optServer); conn->hst = nn_resolve_host(conn, optServer); if (conn->hst == NULL) - { - errorMsg("Could not resolve hostname: %s.\n", strerror(h_errno)); goto err_exit; - } #ifdef FINAL_BUILD /* To emulate the official client, we first make a request for diff -r f3362ed90676 -r bb65460c7aa2 network.c --- a/network.c Sat May 26 05:16:27 2012 +0300 +++ b/network.c Sat May 26 05:20:37 2012 +0300 @@ -93,7 +93,7 @@ { struct hostent *res = gethostbyname(name); if (res == NULL) - nn_conn_err(conn, "Could not resolve hostname: %s\n", strerror(h_errno)); + nn_conn_err(conn, "Could not resolve hostname '%s': %s\n", name, strerror(h_errno)); else nn_conn_msg(conn, "True hostname for %s is %s\n", name, res->h_name);