mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Correct error handling when ingest exception occurs while extracting strings during ingest, need to bail out.
This commit is contained in:
parent
18926cb311
commit
99c85aa824
@ -82,6 +82,7 @@ public class FileExtract {
|
||||
} catch (IngesterException ingEx) {
|
||||
success = false;
|
||||
logger.log(Level.WARNING, "Ingester had a problem with extracted strings from file '" + sourceFile.getName() + "' (id: " + sourceFile.getId() + ").", ingEx);
|
||||
throw ingEx; //need to rethrow/return to signal error and move on
|
||||
}
|
||||
//debug.close();
|
||||
}
|
||||
@ -98,7 +99,7 @@ public class FileExtract {
|
||||
try {
|
||||
stringStream.close();
|
||||
} catch (IOException ex) {
|
||||
Exceptions.printStackTrace(ex);
|
||||
logger.log(Level.WARNING, "Error closing string stream, file: " + sourceFile.getName(), ex);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user