Port the improved error message introduced in ENT-3068 to OS

This commit is contained in:
James Higgs 2019-02-28 11:34:28 +00:00 committed by Mike Hearn
parent b434d49111
commit b52fdf0e0f

View File

@ -109,8 +109,9 @@ class DefaultEvolutionSerializerFactory(
newProperties.forEach { propertyName -> newProperties.forEach { propertyName ->
if (localProperties[propertyName]!!.mustBeProvided) throw EvolutionSerializationException( if (localProperties[propertyName]!!.mustBeProvided) throw EvolutionSerializationException(
this, this,
"Mandatory property $propertyName of local type is not present in remote type - " + "Mandatory property $propertyName of local type is not present in remote type. " +
"did someone remove a property from the schema without considering old clients?") "This implies the type has not evolved in a backwards compatible way. " +
"Consider making $propertyName nullable in the newer version of this type.")
} }
} }