Merge pull request #1642 from iBotPeaches/issue-1640

Remove .exit() falls from library code
This commit is contained in:
Connor Tumbleson 2017-10-24 15:38:41 -04:00 committed by GitHub
commit 97003d5c70

View File

@ -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()) {