From 146edfc39b05a8692f90ced9420c409c007d180f Mon Sep 17 00:00:00 2001
From: Brian Carrier <carrier@sleuthkit.org>
Date: Tue, 11 Aug 2015 14:52:06 -0400
Subject: [PATCH] added comment about error status to sample module

---
 pythonExamples/reportmodule.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/pythonExamples/reportmodule.py b/pythonExamples/reportmodule.py
index 366d28f6a6..759602bdb6 100755
--- a/pythonExamples/reportmodule.py
+++ b/pythonExamples/reportmodule.py
@@ -39,6 +39,7 @@
 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 @@ def generateReport(self, baseReportDir, progressBar):
         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)
\ No newline at end of file
-- 
GitLab