diff options
| author | jvoisin | 2017-10-11 11:27:39 +0200 |
|---|---|---|
| committer | jvoisin | 2017-10-11 11:27:39 +0200 |
| commit | 0e9086030f36f13a4007ae9e111fdcfbc40edbb1 (patch) | |
| tree | 888bf359d6dafb356ba0656a60dade06a93bc47a | |
| parent | b8dd5ce7f5d36c969944d425ff1fbe5f200a1dc8 (diff) | |
Add some info when a regexp fails
| -rw-r--r-- | src/sp_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
| 213 | 213 | ||
| 214 | if (ret < 0) { | 214 | if (ret < 0) { |
| 215 | if (ret != PCRE_ERROR_NOMATCH) { | 215 | if (ret != PCRE_ERROR_NOMATCH) { |
| 216 | sp_log_err("regexp", "Something went wrong with a regexp."); | 216 | sp_log_err("regexp", "Something went wrong with a regexp (%d).", ret); |
| 217 | return false; | 217 | return false; |
| 218 | } | 218 | } |
| 219 | return false; | 219 | return false; |
