From 0e9086030f36f13a4007ae9e111fdcfbc40edbb1 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 11 Oct 2017 11:27:39 +0200 Subject: Add some info when a regexp fails --- src/sp_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/sp_utils.c b/src/sp_utils.c index 0ddc024..58d367f 100644 --- a/src/sp_utils.c +++ b/src/sp_utils.c @@ -213,7 +213,7 @@ bool sp_match_value(const char* value, const char* to_match, const pcre* rx) { if (ret < 0) { if (ret != PCRE_ERROR_NOMATCH) { - sp_log_err("regexp", "Something went wrong with a regexp."); + sp_log_err("regexp", "Something went wrong with a regexp (%d).", ret); return false; } return false; -- cgit v1.3