Changeset

10080:39ca4202ae1e

net.server_epoll: Return listener error message
author Kim Alvefur <zash@zash.se>
date Sat, 25 May 2019 16:09:26 +0200
parents 10079:a36c731ed540
children 10081:72adf1f39404
files net/server_epoll.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/net/server_epoll.lua	Sat Jul 13 19:57:43 2019 +0200
+++ b/net/server_epoll.lua	Sat May 25 16:09:26 2019 +0200
@@ -162,7 +162,7 @@
 	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