Open z3bu opened 4 years ago
I ended up throwing LuaException in my registered function and check err.InnerException in the lua script.
I would like to reproduce this behaviour:
local status, err = pcall(function () error({code=121}) end) print(err.code)
Is there any possibilities?
Hello,
I have been trying to trigger an error in c# functions I registered to NLua. (The plan is to handle exceptions with pcall). So far I tried to do it in two ways:
gives
And
gives
Is this expected? Or is there a better way to trigger errors?
Using Nlua 1.4.32