Well, the ON ERROR stuff didn't FIX the problem. All it was there for was to DETECT the problem.
So you must have done something else that corrected the actual problem.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.