From 8a344f0ba6938591dc91a5fc2218eaa89c6fecd6 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 9 Jan 2013 15:58:36 +0100 Subject: slightly improved config parser error messages when invalid escapes happen --- ChangeLog | 3 +++ grammar/lexer.l | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index df32f47e..166ca0a7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,7 @@ ---------------------------------------------------------------------------- +Version 7.2.6 [v7-stable] 2013-01-?? +- slightly improved config parser error messages when invalid escapes happen +---------------------------------------------------------------------------- Version 7.2.5 [v7-stable] 2013-01-08 - build system cleanup (thanks to Michael Biebl for this!) - bugfix: omelasticsearch did not properly compile on some platforms diff --git a/grammar/lexer.l b/grammar/lexer.l index 63eaa8ce..b7966369 100644 --- a/grammar/lexer.l +++ b/grammar/lexer.l @@ -216,7 +216,8 @@ int fileno(FILE *stream); ([^*]|\n)+|. #.*$ /* skip comments in input */ [ \n\t] -. { dbgprintf("INOBJ: invalid char '%s'\n", yytext); } +. { parser_errmsg("invalid character '%s' - is there an invalid " + "escape sequence somewhere?", yytext); } \$[a-z]+.*$ { /* see comment on $IncludeConfig above */ if(!strncasecmp(yytext, "$includeconfig ", 14)) { yyless(14); -- cgit v1.2.3