mirror of
https://github.com/architectury/architectury-loom.git
synced 2026-03-28 04:07:01 -05:00
Improve error message when reading AW with incorrect namespace. (#1467)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user