commit 89e2ec1: [Minor] Improve error logging
Vsevolod Stakhov
vsevolod at highsecure.ru
Sat Nov 2 13:49:07 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-11-02 13:41:45 +0000
URL: https://github.com/rspamd/rspamd/commit/89e2ec1bd283a40160712f26addc27793b0a1c44 (HEAD -> master)
[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 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;
More information about the Commits
mailing list