diff --git a/dex-translator/src/main/java/com/googlecode/d2j/dex/ExDex2Asm.java b/dex-translator/src/main/java/com/googlecode/d2j/dex/ExDex2Asm.java index f1f820ce5..21fc9d49f 100644 --- a/dex-translator/src/main/java/com/googlecode/d2j/dex/ExDex2Asm.java +++ b/dex-translator/src/main/java/com/googlecode/d2j/dex/ExDex2Asm.java @@ -39,7 +39,8 @@ public void convertCode(DexMethodNode methodNode, MethodVisitor mv) { super.convertCode(methodNode, mn); } catch (Exception ex) { if (exceptionHandler == null) { - throw new DexException(ex, "Failed to convert code for %s", methodNode.method); + new DexException(ex, "Failed to convert code for %s", methodNode.method) + .printStackTrace(); } else { mn.instructions.clear(); mn.tryCatchBlocks.clear(); @@ -55,7 +56,8 @@ public void convertCode(DexMethodNode methodNode, MethodVisitor mv) { mn.instructions.clear(); mn.tryCatchBlocks.clear(); if (exceptionHandler == null) { - throw new DexException(ex, "Failed to convert code for %s", methodNode.method); + new DexException(ex, "Failed to convert code for %s", methodNode.method) + .printStackTrace(); } else { exceptionHandler.handleMethodTranslateException(methodNode.method, methodNode, mn, ex); }