VERIFIED SOLUTION i
Products affected: MapInfo Pro™
The OnError command does not work via the MapBasic Window but does through a compiled MapBasic application.
This is a known restriction and is documented in the MapBasic Help Guide.
ResolutionUPDATED: October 9, 2017
The OnError command can only be used in a compiled MapBasic application. This is basically working as designed.