Skip to content

Commit 144ca6d

Browse files
committed
bring back warning about number of columns in detections input - accidentally removed?
1 parent 866d1eb commit 144ca6d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

R/load.R

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,6 +2001,13 @@ compileDetections <- function(path = "detections", start.time = NULL,
20012001
"File '", i, "' is empty, skipping processing.")
20022002
return(NULL) # File is empty, skip to next file
20032003
}
2004+
if (ncol(aux) < 3) {
2005+
event(type = c("screen", "warning", "report"),
2006+
"File '", i, "' could not be recognized as a valid detections",
2007+
" table (ncol < 3), skipping processing. Are you sure it is a",
2008+
" comma separated file?")
2009+
return(NULL)
2010+
}
20042011
}
20052012
if (file_type == "std") {
20062013
event(type = "debug", "File '", i, "' matches a Standard log.")

0 commit comments

Comments
 (0)