From b1f8e1125f546fcb45292b9fab262605f3d2bb73 Mon Sep 17 00:00:00 2001 From: Eli Pousson Date: Mon, 28 Oct 2024 21:20:57 -0400 Subject: [PATCH 1/2] Improve `arc_select()` error message per #226 --- R/arc-select.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/arc-select.R b/R/arc-select.R index b222fc9..640ddee 100644 --- a/R/arc-select.R +++ b/R/arc-select.R @@ -101,7 +101,7 @@ arc_select <- function( key <- dots_names[i] val <- dots[[i]] # check that the value is a scalar and non-empty - check_string(val, allow_empty = FALSE) + check_string(val, arg = key, allow_empty = FALSE) # insert into query query[[key]] <- val From c771306017ab4d47d05005e77f8d4b852887d75f Mon Sep 17 00:00:00 2001 From: Eli Pousson Date: Mon, 28 Oct 2024 21:24:08 -0400 Subject: [PATCH 2/2] Update NEWS --- NEWS.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/NEWS.md b/NEWS.md index 1727654..400003d 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,10 @@ - `dplyr` methods for `collect()`, `select()`, and `filter()` have been removed. +## Bug fixes + +- `arc_select()` includes argument name in error message when `...` contains non-string values. + # arcgislayers 0.3.1 ## Bug fixes