improved error handling

This commit is contained in:
Jeremy Long
2016-07-27 06:04:56 -04:00
parent e9ec89dc9c
commit ba15de2218

View File

@@ -66,6 +66,7 @@ public class App {
Settings.initialize(); Settings.initialize();
final App app = new App(); final App app = new App();
exitCode = app.run(args); exitCode = app.run(args);
LOGGER.debug("Exit code: " + exitCode);
} finally { } finally {
Settings.cleanup(true); Settings.cleanup(true);
} }
@@ -292,11 +293,15 @@ public class App {
throw ex; throw ex;
} }
} }
if (exCol != null && exCol.getExceptions().size()>0) {
throw exCol;
}
} finally { } finally {
if (engine != null) { if (engine != null) {
engine.cleanup(); engine.cleanup();
} }
} }
} }
/** /**