Update README.md
Added the onError callback