Included example for the 'on error' event
Merge pull request #20 from psiphi75/patch-1

Included example for the 'on error' event