Improve aware_csv msg when CSV files don't exist
parent
9687081fbe
commit
e123a14082
|
@ -57,7 +57,7 @@ pull_data <- function(stream_parameters, device, sensor, sensor_container, colum
|
|||
data_file <- file.path(stream_parameters$FOLDER, sensor_container)
|
||||
|
||||
if(!file.exists(data_file))
|
||||
stop("The data container should be a CSV file but it does not exist: ", data_file)
|
||||
stop("The CSV file with ",sensor," data does not exist: '", data_file, "'. In config.yaml, configure [",sensor,"][CONTAINER] with the name of your CSV file including its '.csv' extension (you set the folder name in [PHONE_DATA_STREAMS][aware_csv]")
|
||||
|
||||
if(!endsWith(data_file, ".csv"))
|
||||
stop("The data container should be a CSV file: ", data_file)
|
||||
|
|
Loading…
Reference in New Issue