Potential bug fix

This commit is contained in:
eugene.livis 2022-08-03 13:46:43 -04:00
parent f20bb479d3
commit 923c9620f9
2 changed files with 4 additions and 2 deletions

View File

@ -261,8 +261,9 @@ public class CommandLineIngestManager extends CommandLineManager {
String ingestProfile = inputs.get(CommandLineCommand.InputType.INGEST_PROFILE_NAME.name());
analyze(dataSource, ingestProfile);
} catch (InterruptedException | CaseActionException | AnalysisStartupException ex) {
LOGGER.log(Level.SEVERE, "Error running ingest on data source " + dataSource.getPath(), ex);
System.out.println("Error running ingest on data source " + dataSource.getPath());
String dataSourcePath = command.getInputs().get(CommandLineCommand.InputType.DATA_SOURCE_PATH.name());
LOGGER.log(Level.SEVERE, "Error running ingest on data source " + dataSourcePath, ex);
System.out.println("Error running ingest on data source " + dataSourcePath);
// Do not process any other commands
errorCode = CL_RUN_FAILURE;
return;

View File

@ -271,6 +271,7 @@ public class CommandLineOptionProcessor extends OptionProcessor {
newCommand.addInputValue(CommandLineCommand.InputType.CASES_BASE_DIR_PATH.name(), caseBaseDir);
newCommand.addInputValue(CommandLineCommand.InputType.DATA_SOURCE_ID.name(), dataSourceId);
newCommand.addInputValue(CommandLineCommand.InputType.INGEST_PROFILE_NAME.name(), ingestProfile);
newCommand.addInputValue(CommandLineCommand.InputType.DATA_SOURCE_PATH.name(), dataSourcePath);
commands.add(newCommand);
runFromCommandLine(true);
}