From afa14f1868f2c753efdc81ce8e2c2d44e6bdd80e Mon Sep 17 00:00:00 2001 From: Jan Maria Matejka Date: Tue, 11 Sep 2018 16:55:41 +0200 Subject: Conf: Show the line:char position where the syntax error happens --- conf/conf.c | 1 + 1 file changed, 1 insertion(+) (limited to 'conf/conf.c') diff --git a/conf/conf.c b/conf/conf.c index 7f4eb7e8..f64932f5 100644 --- a/conf/conf.c +++ b/conf/conf.c @@ -515,6 +515,7 @@ cf_error(char *msg, ...) va_end(args); new_config->err_msg = cfg_strdup(buf); new_config->err_lino = ifs->lino; + new_config->err_chno = ifs->chno - ifs->toklen + 1; new_config->err_file_name = ifs->file_name; cf_lex_unwind(); longjmp(conf_jmpbuf, 1); -- cgit v1.2.3