getword_start(&gwarea1,RedirectorLogFormat);
leks[0]='\0';
if (getword(leks,sizeof(leks),&gwarea1,'#')<0) {
- debuga(_("There is a broken record or garbage in your %s file\n"),wentp);
+ debuga(_("Invalid \"redirector_log_format\" option in your sarg.conf (too many characters before first tag)\n"));
exit(EXIT_FAILURE);
}
year=0;
user[0]='\0';
url[0]='\0';
while(strcmp(leks,"end") != 0) {
- if (getword(leks,sizeof(leks),&gwarea1,'#')<0 || getword(sep,sizeof(sep),&gwarea1,'#')<0) {
- debuga(_("Maybe you have a broken record or garbage in your %s file\n"),wentp);
+ if (getword(leks,sizeof(leks),&gwarea1,'#')<0) {
+ debuga(_("Invalid \"redirector_log_format\" option in your sarg.conf (missing # at end of tag)\n"));
+ exit(EXIT_FAILURE);
+ }
+ if (getword(sep,sizeof(sep),&gwarea1,'#')<0) {
+ debuga(_("Invalid \"redirector_log_format\" option in your sarg.conf (too many characters in column separator)\n"));
exit(EXIT_FAILURE);
}
if(strcmp(leks,"end") != 0) {
if (getword_limit(res,sizeof(res),&gwarea,sep[0])<0) {
- debuga(_("Maybe you have a broken record or garbage in your %s file\n"),wentp);
+ debuga(_("Parsing of tag \"%s\" in redirector log %s returned no result\n"),leks,wentp);
exit(EXIT_FAILURE);
}
if(strcmp(leks,"year") == 0) {