Throw exception from SevenZip init if it fails

This commit is contained in:
Jeff Wallace 2013-10-29 13:03:53 -04:00
parent 7e967e2568
commit ffd28bf899

View File

@ -134,7 +134,7 @@ public final class SevenZipIngestModule extends IngestModuleAbstractFile {
String details = "Error initializing output dir: " + unpackDirPath + ": " + e.getMessage(); String details = "Error initializing output dir: " + unpackDirPath + ": " + e.getMessage();
//MessageNotifyUtil.Notify.error(msg, details); //MessageNotifyUtil.Notify.error(msg, details);
services.postMessage(IngestMessage.createErrorMessage(++messageID, instance, msg, details)); services.postMessage(IngestMessage.createErrorMessage(++messageID, instance, msg, details));
return; throw e;
} }
} }
@ -148,7 +148,7 @@ public final class SevenZipIngestModule extends IngestModuleAbstractFile {
String details = "Could not initialize 7-ZIP library: " + e.getMessage(); String details = "Could not initialize 7-ZIP library: " + e.getMessage();
//MessageNotifyUtil.Notify.error(msg, details); //MessageNotifyUtil.Notify.error(msg, details);
services.postMessage(IngestMessage.createErrorMessage(++messageID, instance, msg, details)); services.postMessage(IngestMessage.createErrorMessage(++messageID, instance, msg, details));
return; throw new RuntimeException(e);
} }
archiveDepthCountTree = new ArchiveDepthCountTree(); archiveDepthCountTree = new ArchiveDepthCountTree();