From: Vsevolod Stakhov Date: Sat, 2 Nov 2019 13:41:45 +0000 (+0000) Subject: [Minor] Improve error logging X-Git-Tag: 2.2~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=89e2ec1bd283a40160712f26addc27793b0a1c44;p=thirdparty%2Frspamd.git [Minor] Improve error logging --- 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;