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 Aug. 21, 2025, 5:58 p.m.