Log the invalid json in MinecraftComponentImpl

This commit is contained in:
Vankka 2024-02-10 21:38:05 +02:00
parent 5279e09c33
commit d739754839
No known key found for this signature in database
GPG Key ID: 6E50CB7A29B96AD0

View File

@ -64,7 +64,7 @@ public class MinecraftComponentImpl implements MinecraftComponent {
try {
component = GsonComponentSerializer.gson().deserialize(json);
} catch (Throwable t) {
throw new IllegalArgumentException("Provided json is not valid", t);
throw new IllegalArgumentException("Provided json is not valid: " + json, t);
}
this.component = component;
this.json = json;