aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/xwrap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xwrap.c b/lib/xwrap.c
index e75fa811..26fcb8df 100644
--- a/lib/xwrap.c
+++ b/lib/xwrap.c
@@ -938,7 +938,7 @@ void xregcomp(regex_t *preg, char *regex, int cflags)
if ((rc = regcomp(preg, regex, cflags))) {
regerror(rc, preg, libbuf, sizeof(libbuf));
- error_exit("bad regex: %s", libbuf);
+ error_exit("bad regex '%s': %s", regex, libbuf);
}
}