Skip to content

Commit 5ca9043

Browse files
nocov internal error routine
1 parent 55f6d07 commit 5ca9043

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/forder.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ static void cleanup(void) {
9999
savetl_end(); // Restore R's own usage of tl. Must run after the for loop in free_ustr() since only CHARSXP which had tl>0 (R's usage) are stored there.
100100
}
101101

102+
// # nocov start
102103
void internal_error_with_cleanup(const char *call_name, const char *format, ...) {
103104
char buff[1024];
104105
va_list args;
@@ -110,6 +111,7 @@ void internal_error_with_cleanup(const char *call_name, const char *format, ...)
110111
cleanup();
111112
error("%s %s: %s. %s", _("Internal error in"), call_name, buff, _("Please report to the data.table issues tracker."));
112113
}
114+
// # nocov end
113115

114116
static void push(const int *x, const int n) {
115117
if (!retgrp) return; // clearer to have the switch here rather than before each call

0 commit comments

Comments
 (0)