Improve the documentation for errors.