Hi,
I’d like to handle all errors using my own Lua code. The main reasons are logging and also to reduce the amount of console spam when errors are shown over and over.
I know that pcall() can be used to handle errors, but I’d like to do them throughout the entire project.
I tried overwriting Error(), ErrorNoHalt() and error() but this only allowed me to handle calls to these specific functions and not the errors from syntax errors with lua_run and so on.
Any ideas ? It would be unrealistic to execute all code via pcall().
Thanks.