Check all the errors at once at the end.