summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-02 13:41:45 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-02 13:41:45 +0000
commit89e2ec1bd283a40160712f26addc27793b0a1c44 (patch)
tree4b7427a2a22ec34f3fcfd01324a0f4e38656d025
parent48e477057ab2cc5cc2f2e1160f787b7af425561e (diff)
downloadrspamd-89e2ec1bd283a40160712f26addc27793b0a1c44.tar.gz
rspamd-89e2ec1bd283a40160712f26addc27793b0a1c44.zip
[Minor] Improve error logging
-rw-r--r--src/libutil/regexp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/regexp.c b/src/libutil/regexp.c
index 766fca093..9bef43501 100644
--- a/src/libutil/regexp.c
+++ b/src/libutil/regexp.c
@@ -450,8 +450,8 @@ fin:
if (r == NULL) {
g_set_error (err, rspamd_regexp_quark(), EINVAL,
- "regexp parsing error: '%s' at position %d",
- err_str, (gint)err_off);
+ "regexp parsing error: '%s' at position %d; pattern: %s",
+ err_str, (gint)err_off, real_pattern);
g_free (real_pattern);
return NULL;