Better json mod warning logging

This commit is contained in:
Anuken
2022-05-05 22:31:27 -04:00
parent f7175540f8
commit a7f84e8690
4 changed files with 11 additions and 5 deletions

View File

@@ -844,7 +844,7 @@ public class ContentParser{
FieldMetadata metadata = fields.get(child.name().replace(" ", "_"));
if(metadata == null){
if(ignoreUnknownFields){
Log.warn("@: Ignoring unknown field: " + child.name + " (" + type.getName() + ")", object);
Log.warn("[@]: Ignoring unknown field: @ (@)", currentContent.minfo.sourceFile.name(), child.name, type.getSimpleName());
continue;
}else{
SerializationException ex = new SerializationException("Field not found: " + child.name + " (" + type.getName() + ")");