Skip to content

Commit 14deecd

Browse files
committed
fix codecov
1 parent 0eae42c commit 14deecd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/openmp-utils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ static const char *mygetenv(const char *name, const char *unset)
8080
SEXP getDTthreads_C(SEXP n, SEXP throttle)
8181
{
8282
if(!isInteger(n) || INTEGER(n)[0] < 0)
83-
error(_("%s must be non-negative integer"), "n");
83+
internal_error(__func__, "n must be non-negative integer"); // # nocov
8484
if(!IS_TRUE_OR_FALSE(throttle))
85-
error(_("%s must be TRUE or FALSE"), "throttle");
85+
internal_error(__func__, "throttle must be TRUE or FALSE"); // # nocov
8686
return ScalarInteger(getDTthreads(INTEGER(n)[0], LOGICAL(throttle)[0]));
8787
}
8888

0 commit comments

Comments
 (0)