diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-01-26 18:41:24 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-01-26 18:41:24 +0100 |
commit | 32d148c8b6f2a68d3bd4d47a0353c7ced009292f (patch) | |
tree | aeac095b859e998d6067ef149e8da289b593fb06 /src/grab.c | |
parent | 6c26168c4ae70f44a5dbb257d1e17594c0f41180 (diff) |
Provide context on regex comp failure
Diffstat (limited to 'src/grab.c')
-rw-r--r-- | src/grab.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -787,7 +787,7 @@ mkregex(char8_t *s, size_t n) if (ret = regcomp(&r, s, cflags)) { char emsg[256]; regerror(ret, &r, emsg, sizeof(emsg)); - diex("Failed to compile regex: %s", emsg); + diex("Failed to compile regex ā%sā: %s", s, emsg); } s[n] = c; |