Skip to content

Commit

Permalink
update error class in snaps
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpcouch committed Oct 21, 2024
1 parent b6c7314 commit 9c5355c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/rows.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
(expect_error(rows_insert(lf, lf, by = "x", conflict = "error", in_place = FALSE))
)
Output
<error/rlang_error>
<error/unsupported_arg_error>
Error in `rows_insert()`:
! `conflict = "error"` isn't supported on database backends.
i It must be "ignore" instead.
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/_snaps/translate-sql-conditional.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@
(expect_error(test_translate_sql(case_when(x == 1L ~ "yes", .ptype = character())))
)
Output
<error/rlang_error>
<error/unsupported_arg_error>
Error in `case_when()`:
! Argument `.ptype` isn't supported on database backends.
Code
(expect_error(test_translate_sql(case_when(x == 1L ~ "yes", .size = 1))))
Output
<error/rlang_error>
<error/unsupported_arg_error>
Error in `case_when()`:
! Argument `.size` isn't supported on database backends.

Expand Down Expand Up @@ -122,7 +122,7 @@
Code
(expect_error(test_translate_sql(case_match(x, 1 ~ 1, .ptype = integer()))))
Output
<error/rlang_error>
<error/unsupported_arg_error>
Error in `case_match()`:
! Argument `.ptype` isn't supported on database backends.

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/_snaps/verb-pivot-wider.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
Code
(expect_error(tidyr::pivot_wider(df, id_expand = TRUE)))
Output
<error/rlang_error>
<error/unsupported_arg_error>
Error in `tidyr::pivot_wider()`:
! `id_expand = TRUE` isn't supported on database backends.
i It must be FALSE instead.
Expand Down

0 comments on commit 9c5355c

Please sign in to comment.