please add context to the error message so that the user know which field/type is causing problem.