Add error method to readme