diff --git a/src/tools/android/java/com/google/devtools/build/android/r8/DexFileMerger.java b/src/tools/android/java/com/google/devtools/build/android/r8/DexFileMerger.java index ff11d15e27fb9c..2877c26d50380f 100644 --- a/src/tools/android/java/com/google/devtools/build/android/r8/DexFileMerger.java +++ b/src/tools/android/java/com/google/devtools/build/android/r8/DexFileMerger.java @@ -378,7 +378,7 @@ public static void run(String[] args) throws CompilationFailedException, IOExcep } } - public static void main(String[] args) throws CompilationFailedException { + public static void main(String[] args) { try { if (PRINT_ARGS) { printArgs(args); @@ -386,7 +386,7 @@ public static void main(String[] args) throws CompilationFailedException { run(args); } catch (CompilationFailedException | IOException e) { System.err.println("Merge failed: " + e.getMessage()); - throw new CompilationFailedException("Merge failed: " + e.getMessage()); + throw new RuntimeException("Merge failed: " + e.getMessage(), e); } }