wesnoth-cvs-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Wesnoth-cvs-commits] wesnoth/src network.cpp


From: David White
Subject: [Wesnoth-cvs-commits] wesnoth/src network.cpp
Date: Sat, 28 Aug 2004 00:31:12 -0400

CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     David White <address@hidden>    04/08/28 04:26:14

Modified files:
        src            : network.cpp 

Log message:
        made better error messages for machines that cannot bind to local ports

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/network.cpp.diff?tr1=1.40&tr2=1.41&r1=text&r2=text

Patches:
Index: wesnoth/src/network.cpp
diff -u wesnoth/src/network.cpp:1.40 wesnoth/src/network.cpp:1.41
--- wesnoth/src/network.cpp:1.40        Wed Aug 18 02:51:23 2004
+++ wesnoth/src/network.cpp     Sat Aug 28 04:26:14 2004
@@ -207,7 +207,8 @@
 
        TCPsocket sock = SDLNet_TCP_Open(&ip);
        if(!sock) {
-               throw error("Could not connect to host");
+               throw error(hostname == NULL ? "Could not bind to port" :
+                                              "Could not connect to host");
        } else {
                //TODO: add code in here which sets the socket to non-blocking
        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]