aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-01-26 18:41:24 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-01-26 18:41:24 +0100
commit32d148c8b6f2a68d3bd4d47a0353c7ced009292f (patch)
treeaeac095b859e998d6067ef149e8da289b593fb06
parent6c26168c4ae70f44a5dbb257d1e17594c0f41180 (diff)
Provide context on regex comp failure
-rw-r--r--src/grab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grab.c b/src/grab.c
index b15005f..9f8137b 100644
--- a/src/grab.c
+++ b/src/grab.c
@@ -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;