Changeset

95:d67ad403ca55

verse: Return false rather than nil from connect() on error, for consistency
author Matthew Wild <mwild1@gmail.com>
date Sat, 21 Aug 2010 14:35:51 +0100
parents 94:b40465267fb5
children 96:f0aec10023aa
files init.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/init.lua	Mon Aug 09 13:57:08 2010 +0100
+++ b/init.lua	Sat Aug 21 14:35:51 2010 +0100
@@ -57,7 +57,7 @@
 
 	local conn = server.wrapclient(conn, connect_host, connect_port, new_listener(self), "*a");
 	if not conn then
-		return nil, err;
+		return false, err;
 	end
 	
 	self.conn = conn;