LuaMachine
LuaMachine copied to clipboard
Access Error Outside of State File
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.
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.