mirror of
https://github.com/corda/corda.git
synced 2025-06-01 15:10:54 +00:00
Port the improved error message introduced in ENT-3068 to OS
This commit is contained in:
parent
b434d49111
commit
b52fdf0e0f
@ -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.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user