From 66c33ccbe6bcc8af97b1a7f49515a7181b89c323 Mon Sep 17 00:00:00 2001 From: Greg DiCristofaro Date: Tue, 12 Jul 2022 16:07:38 -0400 Subject: [PATCH] cli report exception for report generation failures --- .../commandlineingest/CommandLineIngestManager.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Core/src/org/sleuthkit/autopsy/commandlineingest/CommandLineIngestManager.java b/Core/src/org/sleuthkit/autopsy/commandlineingest/CommandLineIngestManager.java index 623d09a695..39aea28933 100755 --- a/Core/src/org/sleuthkit/autopsy/commandlineingest/CommandLineIngestManager.java +++ b/Core/src/org/sleuthkit/autopsy/commandlineingest/CommandLineIngestManager.java @@ -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: