From 0765f19c3712bc7d7c36fab1ee76e5c43d3c190a Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Thu, 3 Mar 2011 14:39:34 +0000 Subject: [PATCH] Make two fatal error message in load_one_actions_file() more descriptive --- actions.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/actions.c b/actions.c index a68bf1b9..4eeb9bb6 100644 --- a/actions.c +++ b/actions.c @@ -1,4 +1,4 @@ -const char actions_rcs[] = "$Id: actions.c,v 1.63 2011/03/03 14:38:36 fabiankeil Exp $"; +const char actions_rcs[] = "$Id: actions.c,v 1.64 2011/03/03 14:39:13 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/actions.c,v $ @@ -1267,8 +1267,8 @@ static int load_one_actions_file(struct client_state *csp, int fileid) /* No closing } */ fclose(fp); freez(actions_buf); - log_error(LOG_LEVEL_FATAL, - "can't load actions file '%s': invalid line (%lu): %s", + log_error(LOG_LEVEL_FATAL, "can't load actions file '%s': " + "Missing trailing '}' in action section starting at line (%lu): %s", csp->config->actions_file[fileid], linenum, buf); return 1; /* never get here */ } @@ -1282,8 +1282,8 @@ static int load_one_actions_file(struct client_state *csp, int fileid) /* error */ fclose(fp); freez(actions_buf); - log_error(LOG_LEVEL_FATAL, - "can't load actions file '%s': invalid line (%lu): %s", + log_error(LOG_LEVEL_FATAL, "can't load actions file '%s': " + "can't completely parse the action section starting at line (%lu): %s", csp->config->actions_file[fileid], linenum, buf); return 1; /* never get here */ } -- 2.39.2