update errors.md, the code in doc doesn't work