Merge pull request #7644 from gdicristofaro/8372-reportCLIException

8372 cli report exception for report generation failures
This commit is contained in:
eugene7646 2022-07-14 13:58:09 -04:00 committed by GitHub
commit 25f84c7464
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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: