From 202b9193db40c10718b139f6e8c7bebba662f049 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 15 Jan 2009 20:02:28 +0000 Subject: net.connlisteners: Fix to report errors loading connlisteners --- net/connlisteners.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net') 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; -- cgit v1.2.3