Skip to content

Commit 8207015

Browse files
nocov errors-->internal_error
1 parent d1f45b1 commit 8207015

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/mergelist.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
SEXP copyCols(SEXP x, SEXP cols) {
55
// used in R/mergelist.R
66
if (!isDataTable(x))
7-
error("'x' must be a data.table"); // # nocov
7+
internal_error(__func__, "'x' must be a data.table"); // # nocov
88
if (!isInteger(cols))
9-
error("'cols' must be integer"); // # nocov
9+
internal_error(__func__, "'cols' must be integer"); // # nocov
1010
int nx = length(x), ncols = LENGTH(cols), *colsp = INTEGER(cols);
1111
if (!nx || !ncols)
1212
return R_NilValue;

0 commit comments

Comments
 (0)