From 89e2ec1bd283a40160712f26addc27793b0a1c44 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 2 Nov 2019 13:41:45 +0000 Subject: [PATCH] [Minor] Improve error logging --- src/libutil/regexp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libutil/regexp.c b/src/libutil/regexp.c index 766fca0931..9bef43501a 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; -- 2.47.3