Skip to content

Commit

Permalink
use stop instead of cli_abort
Browse files Browse the repository at this point in the history
  • Loading branch information
edward-burn authored and krlmlr committed May 9, 2024
1 parent ed506be commit f22d5ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/backend-dbplyr__duckdb_connection.R
Original file line number Diff line number Diff line change
Expand Up @@ -287,10 +287,10 @@ sql_translation.duckdb_connection <- function(con) {

rlang::check_dots_empty()
if (precision != "day") {
cli::cli_abort('The only supported value for {.arg precision} on SQL backends is "day"')
stop('The only supported value for `precision` on SQL backends is "day"')
}
if (n != 1) {
cli::cli_abort('The only supported value for {.arg n} on SQL backends is "1"')
stop('The only supported value for `n` on SQL backends is "1"')
}

build_sql("DATEDIFF('day', ", !!start, ", " ,!!end, ")")
Expand Down

0 comments on commit f22d5ec

Please sign in to comment.