From: Fabian Keil Date: Thu, 3 Mar 2011 14:47:28 +0000 (+0000) Subject: In compile_dynamic_pcrs_job_list(), also log the actual error code as pcrs_strerror... X-Git-Tag: v_3_0_18~307 X-Git-Url: http://www.privoxy.org/gitweb/%40%40?a=commitdiff_plain;h=5c2de428ac4cf7216eac46e8b140ca34081bf52f;p=privoxy.git In compile_dynamic_pcrs_job_list(), also log the actual error code as pcrs_strerror() doesn't handle all errors reported by pcre --- diff --git a/filters.c b/filters.c index 7251a1dc..8849be2f 100644 --- a/filters.c +++ b/filters.c @@ -1,4 +1,4 @@ -const char filters_rcs[] = "$Id: filters.c,v 1.138 2011/02/19 13:53:14 fabiankeil Exp $"; +const char filters_rcs[] = "$Id: filters.c,v 1.139 2011/03/03 14:46:37 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/filters.c,v $ @@ -1003,8 +1003,8 @@ pcrs_job *compile_dynamic_pcrs_job_list(const struct client_state *csp, const st if (NULL == dummy) { log_error(LOG_LEVEL_ERROR, - "Adding filter job \'%s\' to dynamic filter %s failed: %s", - pattern->str, b->name, pcrs_strerror(error)); + "Adding filter job \'%s\' to dynamic filter %s failed: %d %s", + pattern->str, b->name, error, pcrs_strerror(error)); continue; } else