Software /
code /
prosody
Changeset
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 |
parents | 720:8f22e9fb2291 |
children | 722:63456c9d0522 |
files | net/connlisteners.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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;