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 22, 2024
1 parent a5ac19b commit db37746
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 db37746

Please sign in to comment.