remove previous errors when require constraint is invalid
Merge pull request #352 from iMoses/master

Remove previous errors when require constraint is invalid