Diff

net/server.lua @ 855:57057f2cbecb

net.server: Fix to make sure we send a string to logging function
author Matthew Wild <mwild1@gmail.com>
date Mon, 02 Mar 2009 19:49:09 +0000
parent 850:edbd0d1fce93
child 867:21347a87e185
line wrap: on
line diff
--- a/net/server.lua	Mon Mar 02 19:45:44 2009 +0000
+++ b/net/server.lua	Mon Mar 02 19:49:09 2009 +0000
@@ -438,7 +438,7 @@
             --out_put( "server.lua: read data '", buffer, "', error: ", err )
             return dispatch( handler, buffer, err )
         else    -- connections was closed or fatal error
-            out_put( "server.lua: client ", ip, ":", clientport, " error: ", err )
+            out_put( "server.lua: client ", ip, ":", tostring(clientport), " error: ", tostring(err) )
             fatalerror = true
             disconnect( handler, err )
 	    _ = handler and handler.close( )