Improve R wrapper error message calling overloaded methods
when incorrect types passed are passed to the overloaded methods.
Old unhelpful error message:
Error in f(...) : could not find function "f"
Example of new improved error message:
Error in use_count(k) :
cannot find overloaded function for use_count with argtypes (NULL)
This commit is contained in:
parent
9e7610f972
commit
f2da4f2ade
3 changed files with 18 additions and 6 deletions
|
|
@ -570,7 +570,7 @@ testSuite <- function() {
|
|||
k = m$SmartMemberValue;
|
||||
if (!is.null(k))
|
||||
stop("expected null");
|
||||
#testSuite_verifyCount(0, k); # this does not work for nulls
|
||||
testSuite_verifyCount(0, k); # this does not work for nulls
|
||||
|
||||
# plain by value
|
||||
bNotCatched = F
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue