blob: bb284cc0bb00518be822a530f647d3d1584f6b3b (
plain)
1
2
3
4
5
6
7
8
9
|
local M = {}
-- handles errors sensibly
function M.loop_correctly(context, cq)
local ok, err, code, thread, pollee, fd = cq:loop()
error('👉'..context..' '..debug.traceback(thread,err)..'👈',0)
end
return M
|