I hope there's a better way to do this already that I'm missing, but here's my thoughts:
Use case - I need to log errors for later analysis, and be alerted when errors are happening in my apps
Current situation - I create a slack query that sends messages to a monitored channel.
I then have to wire every query to send data to that slack query in the failure event handler. Extra complication is that the slack error handler query needs details about what failed and why and the event handler dialog doesn't have additionalScope or a way to pass parameters, so I have to use runScript to trigger the query.
Ideal situation - nominate a resource as a global error handler for all app queries that automatically receives the query error/context/user/app/ etc and be able to enable this at a global level in addition to individual queries being able to have their own error handlers.
Perfect situation - Also be able to choose the "show notification on success/failure" checkbox option at the app level