Advertisement
Guest User

Untitled

a guest
Mar 5th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. diff --git a/plugins/regex_remap/regex_remap.cc b/plugins/regex_remap/regex_remap.cc
  2. index 3c61c4a..8b2e23c 100644
  3. --- a/plugins/regex_remap/regex_remap.cc
  4. +++ b/plugins/regex_remap/regex_remap.cc
  5. @@ -347,6 +347,7 @@ RemapRegex::compile(const char** error, int* erroffset)
  6. NULL); // use default character tables
  7.  
  8. if (NULL == _rex) {
  9. + error = "_rex is null";
  10. return -1;
  11. }
  12.  
  13. @@ -356,6 +357,7 @@ RemapRegex::compile(const char** error, int* erroffset)
  14. }
  15.  
  16. if (pcre_fullinfo(_rex, _extra, PCRE_INFO_CAPTURECOUNT, &ccount) != 0) {
  17. + error = "Failed to run pcre_fullinfo";
  18. return -1;
  19. }
  20.  
  21. @@ -409,6 +411,7 @@ RemapRegex::compile(const char** error, int* erroffset)
  22. if (ix > -1) {
  23. if ((ix < 10) && (ix > ccount)) {
  24. TSDebug(PLUGIN_NAME, "Trying to use unavailable substitution, check the regex!");
  25. + error = "Trying to use unavailable substitution, check the regex!";
  26. return -1; // No substitutions available other than $0
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement