If the '--use-corpus' flag of the ML analysis is set, but the corpus
file does not exist for whatever reason, the path of the supposed corpus
file is logged. This increases understanding of errors during the ML
analysis.
Signed-off-by: Claus Hunsen <hunsen@xxxxxxxxxxxxxxxxx>
---
codeface/R/ml/analysis.r | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/codeface/R/ml/analysis.r b/codeface/R/ml/analysis.r
index 11922e2..2bc12fd 100644
--- a/codeface/R/ml/analysis.r
+++ b/codeface/R/ml/analysis.r
@@ -54,7 +54,7 @@ gen.forest <- function(conf, repo.path, resdir,
use.mbox=TRUE) {
loginfo("Loading mail data from precomputed corpus instead of mbox file")
load(file=corp.file)
} else {
- logerror("Corpus file not found")
+ logerror(sprintf("Corpus file not found: %s", corp.file))
stop()
}
--
2.10.2