From e123a14082ca25e93be6334bb7fe6fb2de018688 Mon Sep 17 00:00:00 2001 From: JulioV Date: Tue, 1 Jun 2021 10:57:17 -0400 Subject: [PATCH] Improve aware_csv msg when CSV files don't exist --- src/data/streams/aware_csv/container.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/data/streams/aware_csv/container.R b/src/data/streams/aware_csv/container.R index 90b910e4..1863550a 100644 --- a/src/data/streams/aware_csv/container.R +++ b/src/data/streams/aware_csv/container.R @@ -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)