Improve error documentation