mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Merge pull request #7644 from gdicristofaro/8372-reportCLIException
8372 cli report exception for report generation failures
This commit is contained in:
commit
25f84c7464
@ -330,6 +330,13 @@ public class CommandLineIngestManager extends CommandLineManager {
|
||||
errorCode = CL_RUN_FAILURE;
|
||||
// Do not process any other commands
|
||||
return;
|
||||
} catch (Exception ex) {
|
||||
String msg = "An exception occurred while generating report: " + ex.getMessage();
|
||||
LOGGER.log(Level.WARNING, msg, ex);
|
||||
System.out.println(msg);
|
||||
errorCode = CL_RUN_FAILURE;
|
||||
// Do not process any other commands
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case LIST_ALL_INGEST_PROFILES:
|
||||
|
Loading…
x
Reference in New Issue
Block a user