Update README.md

fixed the condition of error-logging