mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-26 19:11:29 +01:00
improved error handling
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user