Skip to content

Commit

Permalink
add error class
Browse files Browse the repository at this point in the history
  • Loading branch information
sannegovaert committed Aug 27, 2024
1 parent 8865e29 commit d8eef96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/example_package.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
example_package <- function(version = 1) {
if (!version %in% c(1, "1", 1.0, "1.0")) {
cli::cli_abort(
"Currently only version 1 is supported."
"Currently only version 1 (`version = 1`) is supported.",
class = "frictionless_error_example_package_version_invalid"
)
} else {
path <- system.file(
Expand Down

0 comments on commit d8eef96

Please sign in to comment.