# HG changeset patch
# User Matthew Wild <mwild1@gmail.com>
# Date 1232049748 0
# Node ID 51233a8ae3d4d929cefc7b81ead3ea1c2bec23e4
# Parent  8f22e9fb229143cd9fbec033415158e4efc5a6ef
net.connlisteners: Fix to report errors loading connlisteners

diff -r 8f22e9fb2291 -r 51233a8ae3d4 net/connlisteners.lua
--- a/net/connlisteners.lua	Thu Jan 15 04:10:06 2009 +0000
+++ b/net/connlisteners.lua	Thu Jan 15 20:02:28 2009 +0000
@@ -57,9 +57,9 @@
 local wrapper_functions = { tcp = server.wraptcpclient, ssl = server.wrapsslclient, tls = server.wraptlsclient }
 
 function start(name, udata)
-	local h = get(name);
+	local h, err = get(name);
 	if not h then
-		error("No such connection module: "..name, 0);
+		error("No such connection module: "..name.. (err and (" ("..err..")") or ""), 0);
 	end
 	
 	local wrapper_function = wrapper_functions[(udata and udata.type)] or wrapper_functions.tcp;