Skip to content

Commit

Permalink
Wording change [revdev skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinCCYap committed Jan 19, 2022
1 parent e4b2793 commit 067882d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/mergingandstackingutilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ createReadErrorHandler <- function(data.set.name)
{
function(e) {
if (grepl("Invalid file, or file has unsupported features", e$message)) {
stop(paste0("The data set '", data.set.name, "' could not be parsed. ",
stop(paste0("The data file '", data.set.name, "' could not be parsed. ",
"Check the data set for issues and try again after fixing them or removing unnecessary variables."))
} else {
stop(e$message)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-mergingandstackingutilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ test_that("readDataSets: Non .sav files throw nice error", {
test_that("readDataSets: better error message when data file is invalid", {
mock.parser <- function(x) stop("Invalid file, or file has unsupported features")
expect_error(readLocalDataSets("bad.sav", mock.parser),
paste0("The data set 'bad.sav' could not be parsed. ",
paste0("The data file 'bad.sav' could not be parsed. ",
"Check the data set for issues and try again after fixing them or removing unnecessary variables."))
})

Expand Down

0 comments on commit 067882d

Please sign in to comment.