I have making quite a few Gateway Tag Change Scripts that are doing various things, including interacting with SQL tables.
For my scripts running on a button click, it is obviously easy enough to display an errorBox to bring attention to an issue instantly. But with Gateway Event Scripts, you cannot do this.
Currently in my Gateway scripts I have some error checking, such as Try/Except whenever i do a runPrepQuery call.
The Except will log a stack trace error message which will show up in the Gateway console, as well as stored in an SQL table.
What do you guys think best practice would be for handling errors, and also creating a simple interface for an engineer/ admin to check any errors that may have occurred?
I don’t want errors to be occurring and no one knowing about it for some time.