Skip to content

Commit 84c885a

Browse files
committed
tweak error message
1 parent d48a6ed commit 84c885a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inst/include/Rcpp/vector/traits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ namespace traits{
7979
#ifndef RCPP_NO_BOUNDS_CHECK
8080
void check_index(R_xlen_t i) const {
8181
if (i >= size) {
82-
stop("index error");
82+
stop("subscript out of bounds (index %s >= vector size %s)", i, size);
8383
}
8484
}
8585
#endif

0 commit comments

Comments
 (0)