Updated the readme.md
Added some functionality when there is an error