function getErrorMessage(sMessage, vProperty) {
		let sError = "";


		if (!vProperty) {
			sError = `Invalid property definition: ${sMessage}`;
		} else if (Array.isArray(vProperty)) {
			const sPropertyKeys = vProperty.map((oProp) => `'${Object.keys(oProp)[0]}'`).join(",");
			sError = `Invalid property definition for properties with keys ${sPropertyKeys}: ${sMessage}`;
		} else {
			const sPropertyKey = vProperty.key ?? vProperty.name;
			sError = `Invalid property definition for property with key '${sPropertyKey}': ${sMessage}`;
		}
		return sError;
	}
@param {string} sMessage Additional message that should be shown in the error
@param {Object | Array} vProperty Property or array of objects with property keys as keys
@returns {string} Error message that should be thrown