Software /
code /
prosody
Comparison
net/server_epoll.lua @ 10080:39ca4202ae1e
net.server_epoll: Return listener error message
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 25 May 2019 16:09:26 +0200 |
parent | 10061:5c71693c8345 |
child | 10081:72adf1f39404 |
comparison
equal
deleted
inserted
replaced
10079:a36c731ed540 | 10080:39ca4202ae1e |
---|---|
160 return; | 160 return; |
161 end | 161 end |
162 local ok, err = pcall(listener, self, ...); | 162 local ok, err = pcall(listener, self, ...); |
163 if not ok then | 163 if not ok then |
164 log("error", "Error calling on%s: %s", what, err); | 164 log("error", "Error calling on%s: %s", what, err); |
165 return; | 165 return nil, err; |
166 end | 166 end |
167 return err; | 167 return err; |
168 end | 168 end |
169 | 169 |
170 -- Return the file descriptor number | 170 -- Return the file descriptor number |