Currently I'm using lua out of an console application, means whenever there is an error in script and lua_error() is called, the related text it is printed.
Now I have to move that thingy into a GUI-application that runs without a console in background. Error text that appear have to be submitted to the main application so that it is able to do whatever is necessary with it. As a second point the whole application has NOT to be stopped (like it happened for the console-application).
So my question: Is there a possibility to catch the error messages given with lua_error() at some point in code for further processing and to avoid the application is stopped?