Skip to content

Commit

Permalink
Improve consistency of error message w/ others
Browse files Browse the repository at this point in the history
  • Loading branch information
elipousson committed Jun 21, 2024
1 parent bda0e81 commit c98a597
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions R/arc-select.R
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,12 @@ get_query_resps <- function(req,
if (isFALSE(x[["advancedQueryCapabilities"]][["supportsPagination"]])) {
if (n_feats > x[["maxRecordCount"]]) {
cli::cli_warn(
"query can't return complete results if {class(x)} does not support pagination
and the number of selected features exceeds the maximum record count."
c(
"{class(x)} {.val {x[['name']]}} does not support pagination and
complete results can't be returned.",
"i" = "{n_feats} features are selected by the query and the maximum
is {x[['maxRecordCount']]} records."
)
)
}

Expand Down

0 comments on commit c98a597

Please sign in to comment.