Included example for the 'on error' event

Included example for the 'on error' event in the README.md file.  It's a bit more verbose, but it shows all the functionality.