mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Potential bug fix
This commit is contained in:
parent
f20bb479d3
commit
923c9620f9
@ -261,8 +261,9 @@ public class CommandLineIngestManager extends CommandLineManager {
|
|||||||
String ingestProfile = inputs.get(CommandLineCommand.InputType.INGEST_PROFILE_NAME.name());
|
String ingestProfile = inputs.get(CommandLineCommand.InputType.INGEST_PROFILE_NAME.name());
|
||||||
analyze(dataSource, ingestProfile);
|
analyze(dataSource, ingestProfile);
|
||||||
} catch (InterruptedException | CaseActionException | AnalysisStartupException ex) {
|
} catch (InterruptedException | CaseActionException | AnalysisStartupException ex) {
|
||||||
LOGGER.log(Level.SEVERE, "Error running ingest on data source " + dataSource.getPath(), ex);
|
String dataSourcePath = command.getInputs().get(CommandLineCommand.InputType.DATA_SOURCE_PATH.name());
|
||||||
System.out.println("Error running ingest on data source " + dataSource.getPath());
|
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
|
// Do not process any other commands
|
||||||
errorCode = CL_RUN_FAILURE;
|
errorCode = CL_RUN_FAILURE;
|
||||||
return;
|
return;
|
||||||
|
@ -271,6 +271,7 @@ public class CommandLineOptionProcessor extends OptionProcessor {
|
|||||||
newCommand.addInputValue(CommandLineCommand.InputType.CASES_BASE_DIR_PATH.name(), caseBaseDir);
|
newCommand.addInputValue(CommandLineCommand.InputType.CASES_BASE_DIR_PATH.name(), caseBaseDir);
|
||||||
newCommand.addInputValue(CommandLineCommand.InputType.DATA_SOURCE_ID.name(), dataSourceId);
|
newCommand.addInputValue(CommandLineCommand.InputType.DATA_SOURCE_ID.name(), dataSourceId);
|
||||||
newCommand.addInputValue(CommandLineCommand.InputType.INGEST_PROFILE_NAME.name(), ingestProfile);
|
newCommand.addInputValue(CommandLineCommand.InputType.INGEST_PROFILE_NAME.name(), ingestProfile);
|
||||||
|
newCommand.addInputValue(CommandLineCommand.InputType.DATA_SOURCE_PATH.name(), dataSourcePath);
|
||||||
commands.add(newCommand);
|
commands.add(newCommand);
|
||||||
runFromCommandLine(true);
|
runFromCommandLine(true);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user