mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +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) {
|
} catch (IngesterException ingEx) {
|
||||||
success = false;
|
success = false;
|
||||||
logger.log(Level.WARNING, "Ingester had a problem with extracted strings from file '" + sourceFile.getName() + "' (id: " + sourceFile.getId() + ").", ingEx);
|
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();
|
//debug.close();
|
||||||
}
|
}
|
||||||
@ -98,7 +99,7 @@ public class FileExtract {
|
|||||||
try {
|
try {
|
||||||
stringStream.close();
|
stringStream.close();
|
||||||
} catch (IOException ex) {
|
} 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