Diff

init.lua @ 124:3659ba3b8dfa

verse: Log error when connection fails instantly
author Matthew Wild <mwild1@gmail.com>
date Sun, 12 Sep 2010 17:49:01 +0100
parent 98:1dccff7df2d5
child 125:b46921de1e03
line wrap: on
line diff
--- a/init.lua	Thu Sep 09 19:35:41 2010 +0100
+++ b/init.lua	Sun Sep 12 17:49:01 2010 +0100
@@ -57,6 +57,7 @@
 
 	local conn = server.wrapclient(conn, connect_host, connect_port, new_listener(self), "*a");
 	if not conn then
+		self:warn("connection initialisation failed: %s", err);
 		return false, err;
 	end