Skip to content

Commit

Permalink
use obj_type_friendly marker
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Apr 20, 2024
1 parent d1f1fe0 commit ed55121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/lint.R
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ validate_linter_object <- function(linter, name) {
if (!is.function(linter)) {
cli_abort(c(
i = "Expected {.fn {name}} to be a function of class {.cls linter}.",
x = "Instead, it is of class {.cls {class(linter)[[1L]]}}."
x = "Instead, it is {.obj_type_friendly {linter}}."
))
}
if (is_linter_factory(linter)) {
Expand Down

0 comments on commit ed55121

Please sign in to comment.