decorate_err_msg: Capture error and decorate error message.

View source: R/checkmate.R

decorate_err_msgR Documentation

Capture error and decorate error message.

Description

Capture error and decorate error message.

Usage

decorate_err_msg(x, pre = character(0), post = character(0))

Arguments

x

object to evaluate

pre

(character(1)) A string to prepend to error message

post

(character(1)) A string to append to error message

Value

x if no error, otherwise throws error with decorated message


teal documentation built on June 30, 2026, 5:11 p.m.