mirror of
https://github.com/revanced/smali.git
synced 2025-05-05 17:14:25 +02:00
Improve the error message for a truncated last instruction
This commit is contained in:
parent
8e1afdda32
commit
a0ccd94bf9
@ -84,7 +84,7 @@ public class DexBackedMethodImplementation implements MethodImplementation {
|
|||||||
// Does the instruction extend past the end of the method?
|
// Does the instruction extend past the end of the method?
|
||||||
int offset = reader.getOffset();
|
int offset = reader.getOffset();
|
||||||
if (offset > endOffset || offset < 0) {
|
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;
|
return instruction;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user