added in the name of the datatype to the typeerrors.