Changeset

124:3659ba3b8dfa

verse: Log error when connection fails instantly
author Matthew Wild <mwild1@gmail.com>
date Sun, 12 Sep 2010 17:49:01 +0100
parents 123:8a079aa70b84
children 125:b46921de1e03
files init.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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