diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-01-15 20:02:28 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-01-15 20:02:28 +0000 |
commit | 202b9193db40c10718b139f6e8c7bebba662f049 (patch) | |
tree | ff468e09b15e9c96a0847382f1222d964227736e | |
parent | b0f1c38d96f870b60260792b5d2e090f0f982d0f (diff) | |
download | prosody-202b9193db40c10718b139f6e8c7bebba662f049.tar.gz prosody-202b9193db40c10718b139f6e8c7bebba662f049.zip |
net.connlisteners: Fix to report errors loading connlisteners
-rw-r--r-- | net/connlisteners.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/connlisteners.lua b/net/connlisteners.lua index 336150be..1230b79c 100644 --- a/net/connlisteners.lua +++ b/net/connlisteners.lua @@ -57,9 +57,9 @@ end 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; |