From 3c200b7e7abf45ad7cc45d6cf572d289a615652f Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sun, 18 Sep 2011 14:43:07 +0000 Subject: [PATCH] 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. --- actions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 */ } -- 2.39.2