Add problematic pattern when DEBUG_CONF is defined

This commit is contained in:
Marc Stern 2024-10-17 14:43:03 +02:00
parent 89ff91dae3
commit ecab91a74e

View File

@ -80,7 +80,11 @@ void *msc_pregcomp_ex(apr_pool_t *pool, const char *pattern, int options,
PCRE2_UCHAR buffer[256];
// Get the error message from the error code
pcre2_get_error_message(error_number, buffer, sizeof(buffer));
*_errptr = apr_pstrdup(pool, buffer);
#ifdef DEBUG_CONF
* _errptr = apr_psprintf(pool, "%s - pattern = %s", buffer, pattern);
#else
* _errptr = apr_pstrdup(pool, buffer);
#endif
return NULL;
}