Included example for the 'on error' event