Skip to content

Commit

Permalink
ch: rename method for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
kennedymwavu committed Mar 10, 2024
1 parent 09ef53a commit ce79ff9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/ambiorix.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,15 @@ Ambiorix <- R6::R6Class(
#'
#' app <- Ambiorix$
#' new()$
#' set_error_handler(error_handler)$
#' set_error(error_handler)$
#' get("/whoami", whoami)
#'
#' if (interactive()) {
#' app$start(open = FALSE)
#' }
set_error_handler = function(handler) {
set_error = function(handler) {
assert_that(not_missing(handler))
assert_that(is_error_handler(handler))
self$error <- handler
invisible(self)
},
Expand Down

0 comments on commit ce79ff9

Please sign in to comment.