cli report exception for report generation failures

This commit is contained in:
Greg DiCristofaro 2022-07-12 16:07:38 -04:00
parent 4eb04f1853
commit 66c33ccbe6

View File

@ -330,6 +330,13 @@ public class CommandLineIngestManager extends CommandLineManager {
errorCode = CL_RUN_FAILURE; errorCode = CL_RUN_FAILURE;
// Do not process any other commands // Do not process any other commands
return; 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; break;
case LIST_ALL_INGEST_PROFILES: case LIST_ALL_INGEST_PROFILES: