Improve error message for requirement.