Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access Error Outside of State File #43

Open
brno32 opened this issue Sep 4, 2022 · 1 comment
Open

Access Error Outside of State File #43

brno32 opened this issue Sep 4, 2022 · 1 comment

Comments

@brno32
Copy link
Contributor

brno32 commented Sep 4, 2022

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.

@Ollinator
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants