Skip to content

Commit

Permalink
limit enforce with stop(..call. = FALSE)
Browse files Browse the repository at this point in the history
  • Loading branch information
aronatkins committed Oct 27, 2021
1 parent 3211587 commit 335d519
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/bundle.R
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,12 @@ enforceBundleLimits <- function(appDir, totalSize, totalFiles) {
stop("The directory ", appDir, " cannot be deployed because it is too ",
"large (the maximum size is ", getOption("rsconnect.max.bundle.size"),
" bytes). Remove some files or adjust the rsconnect.max.bundle.size ",
"option.")
"option.", call. = FALSE)
} else if (totalFiles > getOption("rsconnect.max.bundle.files")) {
stop("The directory ", appDir, " cannot be deployed because it contains ",
"too many files (the maximum number of files is ",
getOption("rsconnect.max.bundle.files"), "). Remove some files or ",
"adjust the rsconnect.max.bundle.files option.")
"adjust the rsconnect.max.bundle.files option.", call. = TRUE)
}
}

Expand Down

0 comments on commit 335d519

Please sign in to comment.