decorate_err_msg: Capture error and decorate error message.
Description
Capture error and decorate error message.
Usage
decorate_err_msg(x, pre = character(0), post = character(0))
Value
x
if no error, otherwise throws error with decorated message
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