--- 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;