diff options
Diffstat (limited to 'bs.lua')
| -rw-r--r-- | bs.lua | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -0,0 +1,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 + |
