Skip to content

Commit

Permalink
add call = rlang::caller_env() to cli_abort()
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed Dec 8, 2024
1 parent 8fb6232 commit 377a4b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/internal_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@

.check_class <- function(x, class) {
if (missing(x) || !inherits(x, class)) {
cli::cli_abort("You must provide a {.code read.abares} class object.")
cli::cli_abort("You must provide a {.code read.abares} class object.",
call = rlang::caller_env())
}
}

Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
},
"SystemRequirements": null
},
"fileSize": "392.199KB",
"fileSize": "392.246KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand Down

0 comments on commit 377a4b0

Please sign in to comment.