opened via imdone.io from a code comment on 76dfca57 by Thomas Mailund
|
# FIXME: how do I get a "bad error message" error here? |
|
error_msg <- glue::glue( |
|
"The argument {arg} is of type {class(arg)} ", |
|
"but should be of type {type}." |
|
) |
|
stop(simpleError(error_msg, call = match.call())) |