mirror of
https://github.com/LegacyModdingMC/UniMix.git
synced 2026-11-20 08:49:35 +00:00
Output LVT discrepancies on separate lines to make them easier to read
This commit is contained in:
1 parent
d69c9d7aa9
commit
a1d2ef62bb
1 file changed
+2
-2
@@ -423,8 +423,8 @@ public class CallbackInjector extends Injector {
|
||||
int position = callback.target.method.instructions.indexOf(callback.node);
|
||||
List<String> expected = CallbackInjector.summariseLocals(this.methodNode.desc, callback.target.arguments.length + 1);
|
||||
List<String> found = CallbackInjector.summariseLocals(callback.localTypes, callback.frameSize);
|
||||
String message = String.format("LVT in %s::%s has incompatible changes at opcode %d. Expected %s but found %s. Callback %s%s",
|
||||
this.classNode.name, callback.target.method.name, position, expected, found, this.methodNode.name, this.methodNode.desc);
|
||||
String message = String.format("LVT in %s::%s has incompatible changes at opcode %d in callback %s%s.\nExpected: %s\n Found:%s",
|
||||
this.classNode.name, callback.target.method.name, position, this.methodNode.name, this.methodNode.desc, expected, found);
|
||||
return message;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user