Fix typo in documentation
Provide more accurate error message