Thu, 15 Jan 2009 20:02:28 +0000
net.connlisteners: Fix to report errors loading connlisteners
net/connlisteners.lua | file | annotate | diff | comparison | revisions |
--- 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;