As we know,when C call Lua API,we can register a error function and use pcall, when an error occur in Lua scripts,it will call the error function.
But,when Lua call a C api,and in the C api it resume a coroutine,after the coroutine continue to execute, it occour an error such as call a nil function.In this case,how to catch the error infomation and show some error log?