Improve aware_csv msg when CSV files don't exist

feature/aware_sql_split
JulioV 2021-06-01 10:57:17 -04:00
parent 9687081fbe
commit e123a14082
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ pull_data <- function(stream_parameters, device, sensor, sensor_container, colum
data_file <- file.path(stream_parameters$FOLDER, sensor_container) data_file <- file.path(stream_parameters$FOLDER, sensor_container)
if(!file.exists(data_file)) 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")) if(!endsWith(data_file, ".csv"))
stop("The data container should be a CSV file: ", data_file) stop("The data container should be a CSV file: ", data_file)