mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-19 19:14:55 +00:00
Catch exceptions correctly
This commit is contained in:
parent
ba0995140c
commit
6f77499edd
@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
package org.sleuthkit.autopsy.hashdatabase;
|
package org.sleuthkit.autopsy.hashdatabase;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
import org.sleuthkit.autopsy.casemodule.Case;
|
import org.sleuthkit.autopsy.casemodule.Case;
|
||||||
@ -73,8 +74,10 @@ public class HashDbIngestService implements IngestServiceFsContent {
|
|||||||
else
|
else
|
||||||
manager.postMessage(IngestMessage.createErrorMessage(++messageId, this, "No known bad database set"));
|
manager.postMessage(IngestMessage.createErrorMessage(++messageId, this, "No known bad database set"));
|
||||||
|
|
||||||
} catch (Exception ex) {
|
} catch (TskException ex) {
|
||||||
logger.log(Level.SEVERE, "Setting NSRL and Known database failed", ex);
|
logger.log(Level.SEVERE, "Setting NSRL and Known database failed", ex);
|
||||||
|
} catch (IOException ex) {
|
||||||
|
logger.log(Level.SEVERE, "Error getting Hash DB settings", ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user