aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_epoll.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-05-25 16:09:26 +0200
committerKim Alvefur <zash@zash.se>2019-05-25 16:09:26 +0200
commitd06300c456ad2209a500e64a6efac1094d58bdea (patch)
treed73d6801918aa172a90bde3213ef430590fc0784 /net/server_epoll.lua
parent41c458eac5f9df61ab8af811c74c8d89e7f38e98 (diff)
downloadprosody-d06300c456ad2209a500e64a6efac1094d58bdea.tar.gz
prosody-d06300c456ad2209a500e64a6efac1094d58bdea.zip
net.server_epoll: Return listener error message
Diffstat (limited to 'net/server_epoll.lua')
-rw-r--r--net/server_epoll.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 5f62d931..4061d755 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -162,7 +162,7 @@ function interface:on(what, ...)
local ok, err = pcall(listener, self, ...);
if not ok then
log("error", "Error calling on%s: %s", what, err);
- return;
+ return nil, err;
end
return err;
end