From: Fabian Keil <fk@fabiankeil.de>
Date: Sat, 24 Jan 2015 16:40:21 +0000 (+0000)
Subject: Properly explain why the pcrs job couldn't be compiled
X-Git-Tag: v_3_0_23~16
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/static/diff?a=commitdiff_plain;h=9ff91f223c567dfb54c405915507e52f93741137;p=privoxy.git

Properly explain why the pcrs job couldn't be compiled
---

diff --git a/loaders.c b/loaders.c
index 6cb641e0..f30d9ddc 100644
--- a/loaders.c
+++ b/loaders.c
@@ -1,4 +1,4 @@
-const char loaders_rcs[] = "$Id: loaders.c,v 1.98 2014/06/02 06:19:06 fabiankeil Exp $";
+const char loaders_rcs[] = "$Id: loaders.c,v 1.99 2014/06/02 06:22:21 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/loaders.c,v $
@@ -1314,7 +1314,8 @@ int load_one_re_filterfile(struct client_state *csp, int fileid)
          if ((dummy = pcrs_compile_command(buf, &error)) == NULL)
          {
             log_error(LOG_LEVEL_ERROR,
-               "Adding re_filter job \'%s\' to filter %s failed with error %d.", buf, bl->name, error);
+               "Adding re_filter job \'%s\' to filter %s failed: %s",
+               buf, bl->name, pcrs_strerror(error));
             freez(buf);
             continue;
          }