[IMP] return all errors in one go, instead of one at a time