added comment about error status to sample module

This commit is contained in:
Brian Carrier 2015-08-11 14:52:06 -04:00
parent a164030947
commit 146edfc39b

View File

@ -39,6 +39,7 @@ from java.util.logging import Level
from org.sleuthkit.autopsy.casemodule import Case
from org.sleuthkit.autopsy.coreutils import Logger
from org.sleuthkit.autopsy.report import GeneralReportModuleAdapter
from org.sleuthkit.autopsy.report.ReportProgressPanel import ReportStatus
# TODO: Rename the class to something more specific
@ -103,4 +104,6 @@ class SampleGeneralReportModule(GeneralReportModuleAdapter):
Case.getCurrentCase().addReport(fileName, self.moduleName, "File Count Report");
progressBar.increment()
progressBar.complete()
# Call this with ERROR if report was not generated
progressBar.complete(ReportStatus.COMPLETE)