mirror of
https://github.com/britzl/monarch.git
synced 2025-09-27 18:12:22 +02:00
Print errors if caught in the callback tracker
This commit is contained in:
@@ -44,7 +44,10 @@ function M.create()
|
||||
function instance.yield_until_done()
|
||||
local co = coroutine.running()
|
||||
callback = function()
|
||||
coroutine.resume(co)
|
||||
local ok, err = coroutine.resume(co)
|
||||
if not ok then
|
||||
print(err)
|
||||
end
|
||||
end
|
||||
invoke_if_done()
|
||||
if not is_done() then
|
||||
|
Reference in New Issue
Block a user