summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dx/src/com/android/dx/command/dexer/Main.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/dx/src/com/android/dx/command/dexer/Main.java b/dx/src/com/android/dx/command/dexer/Main.java
index e93c6a32c..e7c63b8a1 100644
--- a/dx/src/com/android/dx/command/dexer/Main.java
+++ b/dx/src/com/android/dx/command/dexer/Main.java
@@ -595,7 +595,12 @@ public class Main {
// class translation and adding to dex.
int count = errors.incrementAndGet();
if (count < 10) {
- DxConsole.err.println("Uncaught translation error: " + ex.getCause());
+ if (args.debug) {
+ DxConsole.err.println("Uncaught translation error:");
+ ex.getCause().printStackTrace(DxConsole.err);
+ } else {
+ DxConsole.err.println("Uncaught translation error: " + ex.getCause());
+ }
} else {
throw new InterruptedException("Too many errors");
}