add onError to example