verse: Log error when connection fails instantly

Sun, 12 Sep 2010 17:49:01 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sun, 12 Sep 2010 17:49:01 +0100
changeset 124
3659ba3b8dfa
parent 123
8a079aa70b84
child 125
b46921de1e03

verse: Log error when connection fails instantly

init.lua file | annotate | diff | comparison | revisions
--- 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
 	

mercurial