From 41018a81b8133490f1c99a82e41478c577e4d4d4 Mon Sep 17 00:00:00 2001 From: Connor Tumbleson Date: Sat, 14 Oct 2017 12:36:07 -0400 Subject: [PATCH] Remove .exit() falls from library code - fixes #1640 --- .../src/main/java/brut/androlib/res/AndrolibResources.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java index 9508db01..05c8e840 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java @@ -791,13 +791,11 @@ final public class AndrolibResources { File dir = new File(path); if (!dir.isDirectory()) { - LOGGER.severe("--frame-path is set to a file, not a directory."); - System.exit(1); + throw new AndrolibException("--frame-path is set to a file, not a directory."); } if (dir.getParentFile() != null && dir.getParentFile().isFile()) { - LOGGER.severe("Please remove file at " + dir.getParentFile()); - System.exit(1); + throw new AndrolibException("Please remove file at " + dir.getParentFile()); } if (! dir.exists()) {