verse: Return false rather than nil from connect() on error, for consistency

Sat, 21 Aug 2010 14:35:51 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 21 Aug 2010 14:35:51 +0100
changeset 95
d67ad403ca55
parent 94
b40465267fb5
child 96
f0aec10023aa

verse: Return false rather than nil from connect() on error, for consistency

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

mercurial