From 3d1214327d2ef310d9e8f572bf4a3e2fed9f0ace Mon Sep 17 00:00:00 2001 From: Wagyourtail Date: Sun, 12 May 2024 14:16:05 -0500 Subject: [PATCH] add logging --- .../xyz/wagyourtail/jvmdg/compile/shade/ReferenceGraph.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/xyz/wagyourtail/jvmdg/compile/shade/ReferenceGraph.java b/src/main/java/xyz/wagyourtail/jvmdg/compile/shade/ReferenceGraph.java index 5efc5c1b..539c39f7 100644 --- a/src/main/java/xyz/wagyourtail/jvmdg/compile/shade/ReferenceGraph.java +++ b/src/main/java/xyz/wagyourtail/jvmdg/compile/shade/ReferenceGraph.java @@ -59,7 +59,7 @@ public void scan(final Map newScanTargets, Filter filter) throws IOE ClassNode node = ASMUtils.bytesToClassNode(Utils.readAllBytes(stream)); Type type = Type.getObjectType(node.name); if (!type.equals(newScanTargets.get(path))) { - throw new IllegalStateException("Expected path to match class name"); + throw new IllegalStateException("Expected path to match class name: " + path + " != " + type.getInternalName()); } references.get(type).scan(node, filter); }