Skip to content

Commit 5bd9045

Browse files
committed
Remove print, update error
1 parent 5153399 commit 5bd9045

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

inst/WORDLIST

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ issuehunt
8484
isTRUE
8585
jpeg
8686
json
87+
jsonvalidate
8788
KernSmooth
8889
knitr
8990
Ko
@@ -152,6 +153,7 @@ Rds
152153
rds
153154
readLines
154155
readme
156+
readr
155157
recognised
156158
relicensing
157159
RemoteHost

inst/hooks/exported/validate-renv-lock.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,10 @@ validate_renv_lock <- function(renv_path, renv_lock_schema) {
103103
out <- lapply(files, function(path) {
104104
is_renv_lock <- grepl("^.*renv\\.lock$", path)
105105
if (is_renv_lock) {
106-
print(paste0(path, " is a renv.lock file"))
107106
tryCatch(
108107
validate_renv_lock(path, renv_schema),
109108
error = function(error) {
110-
cat(c("renv.lock at", path, "failed validation. Full context:\n"))
109+
cat(c("{renv} lock file at path", path, "failed validation. Full context:\n"))
111110
stop(conditionMessage(error), call. = FALSE)
112111
}
113112
)

0 commit comments

Comments
 (0)