Skip to content
Snippets Groups Projects
Unverified Commit 25f84c74 authored by eugene7646's avatar eugene7646 Committed by GitHub
Browse files

Merge pull request #7644 from gdicristofaro/8372-reportCLIException

8372 cli report exception for report generation failures
parents 4eb04f18 66c33ccb
No related branches found
No related tags found
No related merge requests found
......@@ -330,6 +330,13 @@ public void run() {
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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment