When a runtime error occurs inside a coroutine the script fails silently, the error is not shown in the Script Warning/Error window (or anywhere else).
Tested with different runtime errors, none is displayed. For instance:
function test()
print("before error")
_()
print("after error")
end
coroutine.resume(coroutine.create(test))
-- > before error
-- ! No error message displayed !!!
In the main thread it works as expected:
function test()
print("before error")
_()
print("after error")
end
test()
-- > before error
-- > attempt to call a nil value (in the Script Warning/Error window)