aboutsummaryrefslogtreecommitdiffstats
path: root/net/connlisteners.lua
diff options
context:
space:
mode:
Diffstat (limited to 'net/connlisteners.lua')
-rw-r--r--net/connlisteners.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/connlisteners.lua b/net/connlisteners.lua
index 932cd9cb..230d92a4 100644
--- a/net/connlisteners.lua
+++ b/net/connlisteners.lua
@@ -38,7 +38,10 @@ function get(name)
local h = listeners[name];
if not h then
local ok, ret = pcall(dofile, listeners_dir..name:gsub("[^%w%-]", "_").."_listener.lua");
- if not ok then return nil, ret; end
+ if not ok then
+ log("error", "Error while loading listener '%s': %s", tostring(name), tostring(ret));
+ return nil, ret;
+ end
h = listeners[name];
end
return h;