Skip to content

Commit

Permalink
[Minor] Improve error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Nov 2, 2019
1 parent 48e4770 commit 89e2ec1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libutil/regexp.c
Expand Up @@ -450,8 +450,8 @@ rspamd_regexp_new (const gchar *pattern, const gchar *flags,

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;
Expand Down

0 comments on commit 89e2ec1

Please sign in to comment.