updated README.md.
changed the error handling.