Clarify documentation on errors