diff --git a/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/DexBackedMethodImplementation.java b/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/DexBackedMethodImplementation.java index dd95d282..a82032a1 100644 --- a/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/DexBackedMethodImplementation.java +++ b/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/DexBackedMethodImplementation.java @@ -84,7 +84,7 @@ public class DexBackedMethodImplementation implements MethodImplementation { // Does the instruction extend past the end of the method? int offset = reader.getOffset(); if (offset > endOffset || offset < 0) { - throw new ExceptionWithContext("The last instruction in the method is truncated"); + throw new ExceptionWithContext("The last instruction in method %s is truncated", method); } return instruction; }