From a0ccd94bf9c653107629ea3d94dd6db9bf94c0d9 Mon Sep 17 00:00:00 2001 From: Ben Gruver Date: Sun, 23 Oct 2016 22:10:11 -0700 Subject: [PATCH] Improve the error message for a truncated last instruction --- .../org/jf/dexlib2/dexbacked/DexBackedMethodImplementation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }