diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -360,11 +360,12 @@ pattern_comp(u8view_t pat) size_t eoff; op.re = pcre2_compile(re.p, re.len, reopts, &ec, &eoff, nullptr); if (op.re == nullptr) { + /* TODO: Print which regex failed to compile */ pcre2_bitch_and_die( - ec, "failed to compile regex at byte offset %zu: %s", eoff); + ec, "failed to compile regex at byte offset %zu", eoff); } if ((ec = pcre2_jit_compile(op.re, PCRE2_JIT_COMPLETE)) != 0) - pcre2_bitch_and_die(ec, "failed to JIT compile regex: %s"); + pcre2_bitch_and_die(ec, "failed to JIT compile regex"); #if DEBUG op.free_me = true; #endif |