LuaMachine icon indicating copy to clipboard operation
LuaMachine copied to clipboard

Access Error Outside of State File

Open brno32 opened this issue 3 years ago • 1 comments

Is there a way to return the error from a failed Run Code Asset node? Currently I can print the error out inside my LuaState subclass, but I'd like to be able to retrieve the error in the same place outside the state file where I'm instigating the execution of the code.

brno32 avatar Sep 04 '22 12:09 brno32

What I'm doing is to add errors on the LuaState to an Array and pop them out from right after executing code elsewhere. Is not bulletproof, but works okish for me.

Ollinator avatar Oct 07 '22 16:10 Ollinator