Skip to content

Commit e4664ef

Browse files
committed
rm glubort fun
1 parent f2f30cc commit e4664ef

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

R/layers.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,12 @@ pull_layer_name <- function(x) {
144144

145145
#' @export
146146
#' @rdname layer-processors
147-
validate_layer <- function(x, ..., arg = "`x`", call = caller_env()) {
147+
validate_layer <- function(x, ..., arg = rlang::caller_arg(x),
148+
call = caller_env()) {
148149
rlang::check_dots_empty()
149150
if (!is_layer(x)) {
150-
glubort(
151-
"{arg} must be a frosting layer, not a {class(x)[[1]]}.",
151+
cli::cli_abort(
152+
"{arg} must be a frosting layer, not a {.cls {class(x)[[1]]}}.",
152153
.call = call
153154
)
154155
}

R/utils-cli.R

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ cli_warn <- function(..., .envir = parent.frame()) {
1818
}
1919

2020
#' @importFrom rlang caller_env
21-
glubort <-
22-
function(..., .sep = "", .envir = caller_env(), .call = .envir) {
23-
rlang::abort(glue::glue(..., .sep = .sep, .envir = .envir), call = .call)
24-
}
25-
2621
cat_line <- function(...) {
2722
cat(paste0(..., collapse = "\n"), "\n", sep = "")
2823
}

man/layer-processors.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)