Extended the name instead of value errors to more types