Skip to content

Commit

Permalink
Log more info if incorrect type is detected.
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Tkáčik <tonydamage@gmail.com>
  • Loading branch information
tonydamage committed Nov 30, 2023
1 parent 8e1bb77 commit 032c258
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public void applyDefinition(ItemDefinition definition) throws SchemaException {
value = (T) XmlTypeConverter.toJavaValue((String) value, type);

} else {
throw new SchemaException("Incorrect value type. Expected " + definition.getTypeName() + " for property " + definition.getItemName());
throw new SchemaException("Incorrect value type" + type.getName() + ". Expected " + definition.getTypeName() + " for property " + definition.getItemName());
}
}
}
Expand Down

0 comments on commit 032c258

Please sign in to comment.