If using frameworks, the error methods in the framework may capture the error before the ON ERROR command and still give you an error message.
In Bulgaria is not appropriate to use third party frameworks. We write for every application different framework, because we don't like darkboxes.
For that guy this was the proper solution.
Venelina Jordanova
Outsourcing IT Services Ltd.