From: Fabian Keil <fk@fabiankeil.de>
Date: Sun, 18 Sep 2011 14:43:07 +0000 (+0000)
Subject: Let load_one_actions_file() properly complain about a missing '{' at the beginning... 
X-Git-Tag: v_3_0_18~95
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/static/quickstart.html?a=commitdiff_plain;h=3c200b7e7abf45ad7cc45d6cf572d289a615652f;p=privoxy.git

Let load_one_actions_file() properly complain about a missing '{' at the beginning of the file

Simply stating that a line is invalid isn't particularly helpful.
---

diff --git a/actions.c b/actions.c
index 276a7cde..bd466f87 100644
--- a/actions.c
+++ b/actions.c
@@ -1,4 +1,4 @@
-const char actions_rcs[] = "$Id: actions.c,v 1.71 2011/09/04 11:10:56 fabiankeil Exp $";
+const char actions_rcs[] = "$Id: actions.c,v 1.72 2011/09/04 11:36:33 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/actions.c,v $
@@ -1572,7 +1572,7 @@ static int load_one_actions_file(struct client_state *csp, int fileid)
          /* oops - please have a {} line as 1st line in file. */
          fclose(fp);
          log_error(LOG_LEVEL_FATAL,
-            "can't load actions file '%s': first needed line (%lu) is invalid: %s",
+            "can't load actions file '%s': line %lu should begin with a '{': %s",
             csp->config->actions_file[fileid], linenum, buf);
          return 1; /* never get here */
       }