Wrapper around cli::cli_abort() that applies VW_THEME and
reports the call from the correct frame. Accepts the same msg
conventions as vw_message(): a plain string, a named character
vector (for bullet-style bodies), or inline cli markup.
Usage
vw_error(msg, ..., call = rlang::caller_env())Arguments
- msg
A character string or named character vector passed to
cli::cli_abort(). Use names"i","x","v",">"for bullet formatting, e.g.c("Something failed.", "i" = "Check {.arg x}.").- ...
Additional arguments forwarded to
cli::cli_abort()(e.g.class,call,.internal).- call
Caller enviroment (
rlang::caller_env())
