Changeset

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
parents 854:b9cfc9d5496a
children 856:946d0f91bd38
files net/server.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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( )