Skip to content

Commit

Permalink
Improve aware_csv msg when CSV files don't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
JulioV committed Jun 1, 2021
1 parent 9687081 commit e123a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/streams/aware_csv/container.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e123a14

Please sign in to comment.