Improve error message when reading AW with incorrect namespace. (#1467)

This commit is contained in:
modmuss
2025-12-08 18:27:29 +00:00
committed by GitHub
parent 87adb207b4
commit 0dbe660ed0
2 changed files with 2 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ public record ModAccessWidenerEntry(FabricModJson mod, String path, ModEnvironme
final ClassTweakerReader.Header header = ClassTweakerReader.readHeader(data);
if (!header.getNamespace().equals(MappingsNamespace.OFFICIAL.toString())) {
throw new IOException("Expected official namespace for access widener entry, found: " + header.getNamespace());
throw new IOException("Expected official namespace for access widener entry, found: " + header.getNamespace() + " in mod: " + mod.getId());
}
var reader = ClassTweakerReader.create(visitor);

View File

@@ -145,7 +145,7 @@ public final class MinecraftJarProcessorManager {
try {
entry.processJar(jar, context);
} catch (IOException e) {
throw new IOException("Failed to process jar when running jar processor: %s".formatted(entry.name()), e);
throw new IOException("Failed to process jar when running jar processor: %s - %s".formatted(entry.name(), e.getMessage()), e);
}
}
}