Improve error message of required and exceptional