Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/plugins/regex_remap/regex_remap.cc b/plugins/regex_remap/regex_remap.cc
- index 3c61c4a..8b2e23c 100644
- --- a/plugins/regex_remap/regex_remap.cc
- +++ b/plugins/regex_remap/regex_remap.cc
- @@ -347,6 +347,7 @@ RemapRegex::compile(const char** error, int* erroffset)
- NULL); // use default character tables
- if (NULL == _rex) {
- + error = "_rex is null";
- return -1;
- }
- @@ -356,6 +357,7 @@ RemapRegex::compile(const char** error, int* erroffset)
- }
- if (pcre_fullinfo(_rex, _extra, PCRE_INFO_CAPTURECOUNT, &ccount) != 0) {
- + error = "Failed to run pcre_fullinfo";
- return -1;
- }
- @@ -409,6 +411,7 @@ RemapRegex::compile(const char** error, int* erroffset)
- if (ix > -1) {
- if ((ix < 10) && (ix > ccount)) {
- TSDebug(PLUGIN_NAME, "Trying to use unavailable substitution, check the regex!");
- + error = "Trying to use unavailable substitution, check the regex!";
- return -1; // No substitutions available other than $0
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement