Closed mb706 closed 4 years ago
> f <- function(a, b) assert(checkFunction(a), checkNumeric(b), combine = "and") > f(identity, "a") Error: Assertion on 'a' failed. Must be of type 'numeric', not 'character'.
The expected error message would refer to variable b.
b
@mllg This seems to be indeed a bug: .var.name = as.character(dots[[1L]])[2L] should be .var.name = as.character(dots[[i]])[2L] here
.var.name = as.character(dots[[1L]])[2L]
.var.name = as.character(dots[[i]])[2L]
Indeed, thanks for reporting, and thanks for confirming!
The expected error message would refer to variable
b
.