Software /
code /
prosody
Diff
net/connlisteners.lua @ 721:51233a8ae3d4
net.connlisteners: Fix to report errors loading connlisteners
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 15 Jan 2009 20:02:28 +0000 |
parent | 661:59c3f9a49969 |
child | 739:1def06cd9311 |
line wrap: on
line diff
--- 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;